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
LDAP URI regex
Open Workspace
PCRE2 (PHP)
Match
Created 2022-03-08 13:34
0
Regular Expression
/
^
(
ldap
(
s
)?
:
\/\/
)(
(
(
\d
{1,3}
.
){3}
\d
{1,3}
(
:
\d
+
)?
)
|
(
\w
|
\d
|)+
|
(
(
\[
(
[
a
-
f0
-
9
]
{1,4}
:
{1,2}
){1,4}(
[
a
-
f0
-
9
]
{1,4}
)
\]
)(
:
\d
+
)?
)
)
.\w
+
$
/
gm
Description
ldap, ldaps, ipv4, ipv6 & dns (bare bones)
Submitted by
Anonymous