RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find New Zealand phone numbers
Expression
(^\([0]\d{1}\))(\d{7}$)|(^\([0][2]\d{1}\))(\d{6,8}$)|([0][8][0][0])([\s])(\d{5,8}$)
Description
Matches New Zealand local, mobile and freecall (0800) phone numbers.
Matches
(09)1234567 | (021)123456 | (021)1234567 | (027)123456 | 0800 12345 | 0800 123457
Non-Matches
(09)123456 | (021)12345 | (031)1234567 | (027)12345 | 0800-12345 | 0800123457
Author Rating: The rating for this expression. CGRdevelopment
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials