Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^02[0-2,6-9](\s|-|)\d{3,4}(\s|-|)\d{3,4}$
/
gm

Description

Regex to determine whether or not a New Zealand number is real

Submitted by anonymous - 6 years ago