Regular Expressions 101

Community Patterns

Nz postcodes - Auckland region

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 - 8 months ago