Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Links in string
Open Workspace
JavaScript
Substitution
Updated 2021-06-14 19:53
2
Regular Expression
/
(
(
https
?
:
\/\/
)?
[^
\s
.
]
+
\.
[
\w
]
[^
\s
]
+
)
/
gm
Description
Match links (emails included) in string Replace it with HTML links
Submitted by
David Folch Agulles