Title |
Test
Find
Pattern Title
|
Expression |
^09(73|74|05|06|15|16|17|26|27|35|36|37|79|38|07|08|09|10|12|18|19|20|21|28|29|30|38|39|89|99|22|23|32|33)\d{3}\s?\d{4} |
Description |
Validates a Philippine mobile phone number without International code.
Includes country's six area codes for mobile phones: Express Telecom, Globe Telecom, Next Mobile, Red Mobile, Smart Communications and Sun Cellular |
Matches |
09171234567 | 0905 123 4567 |
Non-Matches |
+639111111 | 09011234567 | 0915 1234 23 2 |
Author |
Rating:
Abram John A. Limpin
|
Source |
|
Your Rating |
|
Title: Inefficient pattern.
Name: anon
Date: 8/5/2012 2:05:51 PM
Comment:
^09(73|74|05|06|15|16|17|26|27|35|36|37|79|38|07|08|09|10|12|18|19|20|21|28|29|30|38|39|89|99|22|23|32|33)\d{3}\s?\d{4}$ simplifies to ^09(0[56789]|1[0256789]|2[01236789]|3[02356789]|7[349]|89|99)\d{3}\s?\d{4}$ is you use character groups the right way.