Asp.net phone China-UK digital verification control

Source: Internet
Author: User
Tags regular expression

Asp tutorial. net mobile phone Chinese and English digital verification controls
1 verification of mobile phone number: ^ 1 [0-9] d {9 }$, previously used: /^ 0 {0, 1} (13 [4-9] | 15 [7-9] | 15 [0-2]) [0-9] {8} $ /,

The Editorial Department asked a question: why can't I add a 189 number? I think the regular expression does not have a 189 number, and then I ran to a senior colleague, the regular expression he gave me was: d {11}. I saw that the verification was incorrect! Only 11-digit numbers can be input. There is no limit on the format or anything, and I have changed the format myself. Now there is no problem.

2 Chinese or English: [u4e00-u9fa5a-za-z _] +,

English: [u4e00-u9fa5]

English match: [a-za-z _]


3. Enter an integer or decimal number (only two decimal numbers can be input): (d +. d {1, 2} | d +)

4 Fixed phone format: (d {3}) | d {3 }-)? D {8}

5. Enter a number: [0-9] *


6 Please enter a valid mailbox, format xxx@xxx.xxx: w + ([-+. '] w +) * @ w + ([-.] w + )*. w + ([-.] w + )*

Collect this information for the moment, and accumulate it later.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.