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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find South African phone numbers - All formats
Expression
^((0|(\(0\)))?|(00|(\(00\)))?(\s?|-?)(27|\(27\))|((\+27))|(\(\+27\))|\(00(\s?|-?)27\))( |-)?(\(?0?\)?)( |-)?\(?(1[0-9]|2[1-4,7-9]|3[1-6,9]|4[0-9]|5[1,3,6-9]|7[1-4,6,8,9]|8[0-9])\)?(\s?|-?)((\d{3}(\s?|-?)\d{4}$)|((\d{4})(\s?|-?)(\d{3})$)|([0-2](\s?|-?)(\d{3}(\s?|-?)\d{3}$)))
Description
Matches all valid mobile numbers, landline numbers, share call etc in all common phone number notations
Matches
+27-11-399-7206
Non-Matches
075-356-6364
Author Rating: The rating for this expression. Bright
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

Title: Thank You
Name: Andrew Mosiane
Date: 7/26/2016 3:26:22 PM
Comment:
It's 2016 and this is still helping out alot. Thank You


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