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 |
|
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...