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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pakistan Cell Number
Expression
^[+]\d{2}?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$
Description
I made it because, user must be enter number in standard form, so if you want to use it for sms in future, you will found it very useful, Please Rate!
Matches
+923218908601
Non-Matches
00923218908601 | 03218908601 | 0321-8908601
Author Rating: The rating for this expression. Mustafa Iqbal
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 regex
Name: Rai Talha Rehman Khan
Date: 7/23/2019 9:57:23 AM
Comment:
accepting non Pakistani code like +00[some]218908601 +0[any]3218908601 +[any]03218908601


Title: poor regex
Name: Rai Talha Rehman Khan
Date: 7/23/2019 9:28:30 AM
Comment:
accepting non Pakistani code like +00[some]218908601 +0[any]3218908601 +[any]03218908601


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