Regular Expressions 101

Community Patterns

Community Library Entry

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 - a year ago (Last modified a year ago)