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
Expression
^(\+27|27|0)[0-9]{2}( |-)?[0-9]{3}( |-)?[0-9]{4}( |-)?(x[0-9]+)?(ext[0-9]+)?
Description
Matches a South African landline or cellphone number. Can use dashes or spaces. Can be prefexed with +27 or 27 or 0. With support for extensions.
Matches
+2711 555 5555 | 0835551234 | 2712-111-3333
Non-Matches
347/123/2345 | 347 888 8921 | 123456789012
Author Rating: Not yet rated. Chaim Chaikin
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