Regular mode correction
Mode Model Mode Model - Unreplanted amendment in Regular Expression Mode Description The following is listed in the current modifier that may be used in PCRE. The internal PCRe name of these modes is in parentheses. I (PCRE_CASELESS) If this corrector is set, the characters in the mode will match the uppercase and lowercase letters. m (PCRE_MULTILINE) By default, PCRe consists of a single "row" character (even in which there is a newline ".). "Row start" element character (^) only matches the start of the string, "Row end" element ($) only matches the end of the string, or the last character is the frontline (unless d) Repair). This is the same as PERL. When this correction is set, "Row start" and "Row end" except matching the entire string and the end of the never, the next, and before. This is equivalent to the Perl / M modifier. If there is no "/ n" characters or mode in the target string, it is not necessary to set this modifier. S (PCRE_DOTALL) If this corrector is set, the circular dot character (.) in the mode matches all characters, including a newline. Without this setting, there is no need for a newline. This is equivalent to the Perl / s correction. Exclude character classes such as [^ a] always matches the charter, whether or not this correction is set. X (PCRE_EXTENDED) If this corrector is set, the blank character in the mode is completely ignored except for the essential or in the character class, and the # of the unflining character class, the next newline character. All characters in room, including two heads, are also ignored. This is equivalent to the Perl / x modifier such that the comment can be added in a complex mode. Note, however, this is only applicable to data characters. Blank characters may never appear in the special character sequence in the mode, such as the sequence of the introduction of condition sub mode (? (Middle .E If this corrector is set, preg_replace () is normal in the replacement string to make normal Replace, the search is evaluated as a PHP code, and use its result to replace the search string. Only preg_replace () uses this corrector, other PCRE functions will be ignored. Note: This corrector is not available in PHP3 .a ( PCRE_Anchored) If this corrector is set, the mode is forced to "anchored", that is, forced only the beginning of the target string. This effect can also be implemented by the appropriate mode itself (the only way to implement in Perl) .D (PCRE_DOLLAR_ENDOONLY) If this corrector is set, the dollar character in the mode matches the end of the target string. When there is no such option, if the last character is a newline, the dollar symbol will match this character ( However, it does not match any other newline character). If the M correction is set, it is ignored that this option is ignored. The amendment with its equivalent .s When a mode will be used, it is worth the first time. It is analyzed. If this corrector is set, additional analysis is performed. Currently, the analysis of a mode only for Non-Anchored mode without a single fixed start character .u (PCRE_UNGREEDY) This correction is reversed. The number of values is not the default repetition, and it will become "?"? "This is not compatible with Perl. You can also enable this option by setting the (? U) correction in the mode. .X (PCRE_extra) This corrector enables an additional feature of PCRE in PRE. Any reverse slope in the mode follows the previous one without a special meaning, thereby reserving this combination for future expansion. By default, like Perl, a backslash is followed by a letter that does not have a special meaning as the letter itself. There is currently no other characteristics controlled by this correction.