Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-03-08 13:34
Flavor·PCRE2 (PHP)

/
^(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
Open regex in editor

Description

ldap, ldaps, ipv4, ipv6 & dns (bare bones)

Submitted by anonymous