Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-03-30 10:19
Flavor·PCRE (Legacy)

/
(LDAP:\/\/)((?<SERVER>[a-zA-Z0-9.-_]+)\/)?(?<DN>DC=[a-z0-9-_]+[,]*)+
/
gm
Open regex in editor

Description

Check a given LDAP base DN with or without a hostname

Submitted by Daywalker