Regular Expressions 101

Community Patterns

address

0

Regular Expression
PCRE (PHP <7.3)

/
\b((?<street>(\p{L}[ ]?[-.]*)+ [0-9]{1,3}([ ]?[A-Za-z])?))\b|\b((?<zipcode>([A-Z-]+)?[0-9]+)[, ](?<city>(\p{L}[- ]?)+))\b
/
gm

Description

no description available

Submitted by anonymous - 4 years ago