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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find South African Cell Phone Number
Expression
(^0[87][23467]((\d{7})|( |-)((\d{3}))( |-)(\d{4})|( |-)(\d{7})))
Description
only allows valid cell phones from south african service providers. to date i havent seen a cell phone number starting 079 or 089 but i think the networks might support it...
Matches
0848298477 | 084 829 8477 | 084-829 8477
Non-Matches
084829 8477
Author Rating: The rating for this expression. Chris Morton
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: Try this
Name: Jakes122
Date: 5/15/2017 5:29:43 PM
Comment:
Try this for the available ranges in SA - https://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa ^0[87654321][12346789]((\d{7})|( |-)((\d{3}))( |-)(\d{4})|( |-)(\d{7}))


Title: Outdated
Name: David van Rensburg
Date: 5/29/2013 4:00:06 AM
Comment:
My number starts with 081 and this does not match. Should be (^0[87][123467]((\d{7})|( |-)((\d{3}))( |-)(\d{4})|( |-)(\d{7})))


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