Regular (? I, m, S, X, g)

Source: Internet
Author: User

 

Regular I, S, M, G

These are pattern delimiters -- describe the delimiters used in regular expression pattern.

I
If this modifier is set, characters in the mode match both uppercase and lowercase letters.

M
When this modifier is set, "row start" and "Row end" not only match the start and end of the entire string, but also match the end and end of the linefeed respectively.

S
If this modifier is set, the dot metacharacters (.) In the pattern match all characters, including line breaks. If this parameter is not set, line breaks are not included.

X
If this modifier is set, the white space characters in the mode are ignored except for escaped characters or in the character class, all the characters between the # And the next line break except the unescaped character class, including both ends, are ignored.

E
If this modifier is set, preg_replace () replaces the reverse reference in the replacement string normally,

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.