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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Check Iranian's Mobile Numbers
Expression
(^(09|9)[1][1-9]\\d{7}$)|(^(09|9)[3][12456]\\d{7}$)
Description
This Regular Expression Chack Matching Persian Mobile Numbers It is Checking MCI,MTN Irancell and Talya Operators For Example In C#.NET: Regex.IsMatch(MobileNumber, "(^(09|9)[1][1-9]\\d{7}$)|(^(09|9)[3][12456]\\d{7}$)");
Matches
09122838473 | 9122838473 | 09369048504
Non-Matches
+989122838473 | 22248016 | 12345
Author Rating: The rating for this expression. Ali Delshad
Source http://faradade.com
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: Not Work in asp.net
Name: Amin
Date: 8/20/2011 2:02:41 AM
Comment:
Not Work in asp.net <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1" Font-Names="Tahoma" Font-Size="8pt" ErrorMessage=".فقط عدد" ControlToValidate="TxtMobil" ValidationExpression="(^(09|9)[1][1-9]\d{7}$)|(^(09|9)[3][12456]\d{7}$)" ValidationGroup="RegisterVG" ForeColor="Red"></asp:RegularExpressionValidator>


Title: Bug Fix
Name: R.Delpak
Date: 11/5/2008 5:30:48 PM
Comment:
this is not correct. you must change it a bit. correct is : (^(09|9)[1][1-9]\d{7}$)|(^(09|9)[3][12456]\d{7}$)


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