The use of regular expressions

Source: Internet
Author: User

[] Table one character, [1-9] table appears 1-9 in any one character, is random

[^] table except for those characters, the rest can be

{} The number of times the rule appears, {1,5} indicates a minimum of 1 occurrences, up to 5 times

? Table 0-1 Times

+ Table 1-At least one occurrence at any time

* Table 0-any time

(|) Represents grouping


I need to specify that an input is a positive integer within 20000 and a multiple of 100

(200|1[0-9]{2}| [1-9] [1-9]?) 00 only a multiple of the input 100, no more than 20000, no letters, negative numbers, the space can be

If it is necessary to specify that the input character is a letter

([a-z]| [A-z]) Only one letter or a-Z between the input A-Z will be

The use of regular expressions

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: 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.