Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(^|[^<>])\b((?:https?|ftp):\/\/[^<>\s]+\b)
/
gi
Input 1
1
New
http://www.google.com here and https://google.com ftp://google.com <http://www.google.com> here and <https://google.com> <ftp://google.com>
Substitution
$1<a href="$2">$2</a>
http://www.google.com here and https://google.com ftp://google.com <http://www.google.com> here and <https://google.com> <ftp://google.com>