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 the condition sub mode (? (Middle.
E If this corrector is set, preg_replace () makes normal replacement in the replacement string, and evaluates it as a PHP code, and replaces the searched string with its results.
Only preg_replace () uses this corrector, other PCRE functions will ignore.
Note: This modifier 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 in 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 only the end of the target string. Without this option, if the last character is a newline, the dollar symbol also matches this character (but not before any other newline). This option is ignored if the M modverage is set. There is no correction with its equivalent in Perl.
S When a mode will be used, it is worth analyzing for the acceleration match. If this correction is set, additional analysis is performed. Currently, it is useful to use a mode only for non-anchored patterns without a single fixed start character.
U (PCRE_ungreedy) This modifier reverses the value of the matching amount to not be the default repetition, and it becomes "?" "?" Becomes repeated. This is not compatible with Perl. This option can also be enabled by setting the (? U) correction in the mode.
X (PCRE_EXTRA) This corrector enables an additional function that is incompatible with Perl in PCRE. Any reverse slope in the mode follows the previous one without a particular meaning of letters resulting in an error, thereby retaining 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. u (PCRE_UTF8) This correction enables an additional feature that is incompatible with Perl in PCRE. The mode string is used as UTF-8. This modifier is available from PHP 4.1.0 under UNIX and is available from PHP 4.2.3 under Win32.