Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(([a-zA-z0-9\-]*(\/){1})[a-zA-z0-9\-\.]*)((\:[0-9]{1,5})((\/)[a-zA-Z0-9\-]*){0,1}){0,1}$
/

Description

Check for a valid Kerberos Service Principal Name

Submitted by Daywalker - 9 years ago