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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Australian mobile phone number
Expression
^((61|\+61)?\s?)04[0-9]{2}\s?([0-9]{3}\s?[0-9]{3}|[0-9]{2}\s?[0-9]{2}\s?[0-9]{2})$
Description
Validates an Australian mobile telephone number that can include an international prefix and four plus (two or three-digit) grouping. I use it in ASP.NET MVC DataAnnotations [RegularExpression()] attributes where I don't get to easily strip out spaces beforehand.
Matches
0418123456 | 0411 123 456 | 0414 12 34 56 | 61 0401 123 456 | +61 0418 12 34 56
Non-Matches
0418 1 23 45 6 | 04 01 123456 | +62 0418 12 34 56
Author Rating: Not yet rated. Steve Malikoff
Source Steve malikoff ([email protected])
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