Title |
Test
Find
Pakistan Phone Number
|
Expression |
^(\+)?([9]{1}[2]{1})?-? ?(\()?([0]{1})?[1-9]{2,4}(\))?-? ??(\()?[1-9]{4,7}(\))?$ |
Description |
Mathes all mobile and landline numbers in pakistan |
Matches |
+92 321 7469854 | 923217469857 | 041 2680226 |
Non-Matches |
00124566 | 01 922 745689 | 0000000000 |
Author |
Rating:
jahangir shahzad
|
Source |
|
Your Rating |
|
Title: Poor syntax.
Name: anon
Date: 8/5/2012 1:56:53 PM
Comment:
>>>> (\+)? simplifies to \+?
>>>> ([9]{1}[2]{1})? simplifies to (92)?
>>>> (\()? simplifies to \(?
>>>> ([0]{1})? simplifies to 0?
>>>> (\))? simplifies to \)? >>>> Why over complicate things?