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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pakistani Mobile Phone Number
Expression
^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$
Description
The expression is used to validate all the number which follows the format of pakistani mobile companies cell phone number format. i.e. Ufone, Warid, Mobilink, Zong, telenor etc
Matches
03231234567 | 0345-1234567 | +923211234567 | +92324-1234567 | +92-3331234567 | +92-333-1234567 | 00923331234567 | 0092333-1234567 | 0092-3331234567 | 0092-333-1234567
Non-Matches
3331234567 | 0333-123-4567 | 92513331234567
Author Rating: The rating for this expression. Tahir Zia
Source Self
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: Works good
Name: Wajahat Raza
Date: 3/17/2024 9:04:03 PM
Comment:
Tested on a large list of mobile numbers. It works perfectly, but with few issues. The numbers start with 92320, 92321, 92302, 92303, 92300, 92346 did not match by the regex. The landline numbers start with 042 matched by the regex.


Title: Works good
Name: Wajahat Raza
Date: 3/17/2024 8:58:24 PM
Comment:
Tested on a large list of mobile numbers. It works perfectly, but with few issues. The numbers start with 92320, 92321, 92302, 92303, 92300, 92346 did not match by the regex. The landline numbers start with 042 matched by the regex.


Title: Validate:+923333333333
Name: Syed Ovais Akhtar
Date: 12/23/2020 9:33:54 PM
Comment:
For getting only this validation use this -> ^((\+92))\d{3}\d{7}$


Title: Validate:+923333333333
Name: Syed Ovais Akhtar
Date: 12/23/2020 9:33:38 PM
Comment:
For getting only this validation use this -> ^((\+92))\d{3}\d{7}$


Title: Need improvements
Name: Rai Talha Rehman Khan
Date: 7/23/2019 9:15:44 AM
Comment:
there are list of wrong values this regex is passing like 30012345678 [any]3001234567 0[any]001234567 03[any]01234567 +92[any]001234567 0092[any]001234567


Title: Need improvements
Name: Rai Talha Rehman Khan
Date: 7/23/2019 9:05:10 AM
Comment:
there are list of wrong values this regex is passing like 30012345678 [any]3001234567 0[any]001234567 03[any]01234567 +92[any]001234567 0092[any]001234567


Title: Improved Pakistani Mobile Phone Number
Name: Tahir Zia
Date: 11/29/2018 12:44:44 PM
Comment:
^((\+92)|(0092))-{0,1}3{1}\d{2}-{0,1}\d{7}$|^0{0,1}3{1}\d{10}$|^0{0,1}3{1}\d{2}-\d{7}$ This expression checks if mobile number starts with +923xxxxxxxxx 00923xxxxxxxxx 03xxxxxxxxx 3xxxxxxxxx


Title: this RE is taking some wrong values?
Name: Muhammad Usman
Date: 4/16/2018 8:40:00 PM
Comment:
Given RE is almost good to go but I tested with 23001234567 number, its accepted while its wrong and not well patterned number. Please do needful as I'm good at RE


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