JS Regular expression (i)

Source: Internet
Author: User
Tags alphabetic character

Regular expressions commonly used symbols

/..../begins to end

^ Start $ end

/s any non-null character/non-null

/d matches a number =[0-9]

/d matches a non-digital =[^0-9]

/w matches a number, underscore, alphabetic character =[a-z A-Z 0-9]

/w non-word =[^a-z A-Z 0-9]

. Any character except a newline

{n} matches the previous n times

{N,} matches the previous item n times or more (n times or more)

{N,m} matches the previous item n times but not more than m times

* Match Previous item 0 or more ={0,} (more than 0 times)

+ Match Previous item 1 or more times ={1,}

? Matches the previous 0 or 1 times ={0,1}

Only numbers can be entered: "^[0-9]*$"

Verify phone Number: ("^ (\d{3.4}-) \d{7,8}$")

JS Regular expression (i)

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.