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:
Ali Delshad
|
Source |
http://faradade.com |
Your Rating |
|
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}$)