Regular Expressions 101

Community Patterns

1...56789...902

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(?#digits)(?<zipcode_digits>\d{4})[\s]?(?#chars)(?<zipcode_chars>\w{2})
/
i

Description

no description available

Submitted by Eelke van den Bos - 9 years ago