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
Match URL or URI strings
Open Workspace
JavaScript
Match
Created 2021-04-09 00:29
0
Regular Expression
/
(
[
a
-
z
]
+
\:\/
+
)(
[^
\/
\s
]
+
)(
[
a
-
z0
-
9
\-
@
\^
=%&;
\/
~
\+
]
*
)
[
\?
]
?
(
[^
\#
\r\n
]
*
)
#
?
(
[^
\#
\r\n
]
*
)
/
ig
Description
Reference:
https://stackoverflow.com/a/34669019/369727
Submitted by
https://danlevy.net/