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
URL find inside text
Open Workspace
PCRE (Legacy)
Substitution
Created 2016-08-02 17:03
1
Regular Expression
/
(?:
[
a
-
z
]
{3,9}
:
\/\/
?
[
\-
;:&=
\+\$
,
\w
]
+?
[
a
-
z0
-
9
\.\-
]
+
|
[
\/
a
-
z0
-
9
]
+
\.
|
[
\-
;:&=
\+\$
,
\w
]
+
@
)
[
a
-
z0
-
9
\.\-
]
+
(?:
(?:
\/
[
\+
~%
\/\.
\w
\-
_
]
*
)?
\?
?
[
\-\+
=&;%@
\.
\w
_
]
*
#
?
[
\.\!\/\\
\w
]
*
)?
/
gi
Description
Search url/link inside text, with/without schema, and with/without path/query
Submitted by
ZeCompadre