Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
((https?:\/\/)?[^\s.]+\.[\w][^\s]+)
/
gm

Description

Match links (emails included) in string Replace it with HTML links

Submitted by David Folch Agulles - 4 years ago (Last modified 4 years ago)