New Zealand Dialing validation regex

, posted: 10-Sep-2018 16:10

Was doing some work with the NZ Dialing plan and needed to write some regex to validate NZ numbers. Using the information from the NAD this is what I ended up with

Local area codes 03,04,06,07,09 are all 8 digits long including the 0
Mobiles 0201 to 0206 are either 10 or 11
Mobiles 0211 and 0212 are 10
Mobiles 0213 to 0219 are 9 
Mobiles 022, 027 and 029 are 10
Mobiles 028 are 9 to 11 digits
I could be wrong here, but that was my understanding. Feel free to comment on the above if any of it is incorrect.

BarTender's profile

Bar Tender
New Zealand