: This article mainly introduces the php regular expression-correction mode. if you are interested in the PHP Tutorial, refer to it. The "correction mode" specifies a matching mode for the regular expression matching process, similar to the mobile phone mode (home mode, meeting mode, etc ):
Includes the following:
"Greedy match" means that when the matching result is ambiguous (multiple results appear), it will select the result with the longest result;
"Lazy match (U)" means that when the matching result is ambiguous (multiple results appear), it will select the result with the shortest result;
"I" -- ignore the uppercase and lowercase letters of regular expressions;
"X" -- ignore the blank space in the regular expression;
"S" -- let metacharacters '.' match all characters including line breaks;
If the regular expression is not specified with the correction mode, the regular expression uses the greedy mode by default ";
The above introduces the php regular expression-correction mode, including the content, hope to be helpful to friends interested in PHP tutorials.