Regular Expressions 101

Community Patterns

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 3 years ago)