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, URI format validation
Open Workspace
JavaScript
Match
Updated 2026-01-16 23:25
1
Regular Expression
/
^
https
?
\:\/\/
[
0
-
9a
-
zA
-
Z-
]
+
(
\.
[
0
-
9a
-
zA
-
Z-
]
+
)+(
\/
[
0
-
9a
-
zA
-
Z-.
]
+
)*(
\?
[
0
-
9a
-
zA
-
Z-.
]
+
\=
\w
+
)*
$
/
gm
Description
URL, URI format validation
Submitted by
Atipat Lorwongam