Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^[a-zA-Z]{1}[\d]{1}[a-zA-Z]{1}([- ])?[\d]{1}[a-zA-Z]{1}[\d]{1}$
/
gm

Description

regex pattern for Canadian addresses

Submitted by Victor Kimura - Surrey, Canada - 2 years ago