Regular Expressions 101

Community Patterns

0

request

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

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

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