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|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+)(?=\s|$)(?!["<>])
/
gi
Input 1
1
New
my foobar http://www.google.com sfgsdg my <a href="http://www.google.com">bla</a>
Extraction
my foobar http://www.google.com sfgsdg my <a href="http://www.google.com">bla</a>