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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find South African Phone Number (incl. Mobile and Landline) Format
Expression
(\(0\d\d\)\s\d{3}[\s-]+\d{4})|(0\d\d[\s-]+\d{3}[\s-]+\d{4})|(0\d{9})|(\+\d\d\s?[\(\s]\d\d[\)\s]\s?\d{3}[\s-]?\d{4})
Description
Tries to match the format of phone numbers within South Africa. Does not try to validate phone numbers based on actual numbers (e.g. cell networks or other landline prefixes)
Matches
(011) 123 4543,(011) 123-4543,(011) 212 8765,011 876 8789,0118768789,011-876-8789,082 821 9090,+27 11 123 1231,+27 (11) 123-1231,+27 (11) 123 1231,+27(11)123-1231,+27 11 1238765
Non-Matches
011 1234 242
Author Rating: The rating for this expression. Martin
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-2024, RegexAdvice.com | ASP.NET Tutorials