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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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: The rating for this expression. jahangir shahzad
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: 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?


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