This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17434|Reply: 0

[ASP.NET] Regular expressions about mobile phone number and phone number in Asp.net (C#)?

[Copy link]
Posted on 4/15/2015 10:28:45 AM | | |

^((\ (\d{2,3}\))| (\d{3}\-))? (\(0\d{2,3}\)|0\d{2,3}-)? [1-9]\d{6,7}(\-\d{1,4})?$ regular expression for phone numbers
^((\(\d{2,3}\))| (\d{3}\-))? 13\d{9} Regular expression for mobile number

China Phone Numbers (including Mobile and Landline):(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}

Chinese mobile phone number in the extracted information: (86)*0*13\d{9}
Extract the Chinese landline phone number from the information: (\(\d{3,4}\)|\d{3,4}-|\s)?\d{8}




Previous:Use Javascrip to remove t onclick to jump to link pages
Next:asp.net article publishing system
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com