Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(?=0)^.([6-9])|^(1)|^(?=2)^.([0-6])
/
mg

Description

A regex to find if a postcode is in Auckland region (New Zealand)

Submitted by brenmurrell - a year ago