Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
[0-9a-zA-Z:,. ]+[ ](?!0+$)\d[\w ]*
/
gm

Description

Checks if address given has a street name and a house number among other things

Submitted by Bill Seremetis (bserem) - 3 years ago