Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\d(?![SLOIBZ])([A-Z]){2}\d\-(?![SLOIBZ])([A-Z]){2}\d\-(?![SLOIBZ])([A-Z]){2}\d{2}
/

Description

Here's a PHP PCRE regexp that has room for improvement but works for me...

Submitted by anonymous - 5 years ago