Regular Expression Pattern modifier, regular expression Modifier
I (PCRE_CASELESS)
If this modifier is set, the letters in the mode are case-insensitive.
M (PCRE_MULTILINE)
By default, PCRE considers the target string to be composed of single-line
Modifier is an important reference to the regular expression in PHP, let me turn to you about the PHP expression pattern modifier in detail, there is a need to know the friend can enter the reference.
The PHP pattern modifier, also known as the
The PHP pattern modifier, also known as the pattern modifiers, is used outside the delimiter of the regular expression. Mainly used to adjust the interpretation of regular expressions, to extend the regular expression in the matching, substitution
PHP extension text processing-the PCRE regular expression pattern modifier lists currently available PCRE modifiers. The names mentioned in brackets are the names of these modifiers in PCRE. Space in the pattern modifier. line breaks are ignored.
Pattern modifier
Pattern modifier--explain the modifiers used in regular expression patterns
Description
The following is a list of possible modifiers that are currently available in PCRE. The internal PCRE names of these modifiers are in
All along, think of their regular expression of the study can be (basic work encountered problems can be solved), but sometimes it is not know its why, in the Internet to see this article, explained before a lot of questions, record down, at any
The PHP pattern modifier, also known as the pattern modifier, is used outside the delimiters of regular expressions. It is mainly used to adjust the interpretation of regular expressions, and extends some functions of regular expressions in
Pattern modifier. Pattern modifier-describe the modifier description used in regular expression pattern. The following lists the modifiers that may be used in PCRE. Contains the internal pattern modifiers for these modifiers.
Pattern
Seeing the const keyword, the first thing a C + + programmer might think of is a const constant. This is not a good reflex. If you only know to define constants with const, then it is equivalent to using gunpowder only to make firecrackers. The
For beginners
mode modifier:
The pattern modifier is marked outside the entire pattern.
I: The characters in the pattern will match the uppercase and lowercase letters.
M: string is treated as multiple lines.
S: Treats the string as a single line
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.