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 match
Open Workspace
Golang
Match
Created 2019-07-13 12:35
0
Regular Expression
`
(?P<origin>
(?P<protocol>
http
[
s
]
?
:
)?
\/\/
(?P<host>
[
a
-
z0
-
9A
-
Z-_.
]
+
)
)(?P<port>
:
\d
+
)?(?P<path>
[
\/
a
-
zA
-
Z0
-
9-
\.
]
+
)?(?P<search>
\?
[^
#
\n
]
+
)?(?P<hash>
#
.
*
)?
`
gm
Description
url match
Submitted by
Anonymous