Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$
/
i

Description

/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i

Submitted by Steven Moseley - 9 years ago