Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
\A^(([0-9]{2}\-[0-9]{2,5}$)\z)|(PW(\-)?(GM1|PRA|JDC)?\-([0-9]{0,5})([EFG])?(LG)?([0-9]{2,3})?([MF])?(\-)?(NOPI)?(PL)?([V]{0,1}PI)?(T)?([0-9]{4}-[0-9]{2})?)?$
/

Description

either 99-99 or one looks more liek the OFA ones

Submitted by anonymous - 9 years ago