Regular Expressions 101

Community Patterns

English address

1

Regular Expression
ECMAScript (JavaScript)

/
((^([#1-9]{1,}[0-9 ]+))|(^[a-zA-Z]+))[\w -]*
/
gim

Description

English address that can start with numbers, # sign or words (\w) followed with any combination of previously mentioned. Multi-line, global and case insensitive supported.

Address CANNOT START WITH \w character _ or 0 or any other symbols

Submitted by Dr St Clair Clarke - 6 months ago (Last modified 6 months ago)