Regular Expressions 101

Community Patterns

0

grok

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 8 years ago

validate US (5 & 9 digit) ZipCodes and CA PostalCodes

7

Regular Expression
PCRE (PHP <7.3)

/
^((\d{5}-\d{4})|(\d{5})|([A-Z]\d[A-Z]\s\d[A-Z]\d))$
/

Description

Loading markdown...
Submitted by anonymous - 9 years ago