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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Single or Multiple Phone Numbers
Expression
^([0-9]{12},)+[0-9]{12}$|^([0-9]{12})$
Description
Verifies if it is a 12 digit phone number or a list of comma separated 12 digit phone numbers.
Matches
966561111111 | 966561111111,9665622222222 | 966561111111,9665622222222,966563333333
Non-Matches
966561111111,9665622222222, | 96656 | 9665645a1221
Author Rating: Not yet rated. Farhan Sajjad
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: There's a shorter expression which does the same
Name: TWiStErRob
Date: 8/9/2008 8:35:19 AM
Comment:
^(\d{12},)*\d{12}$ Because of the star, there is no need for or(|). Think about it...


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