diff --git a/reference/pcre/pattern.modifiers.xml b/reference/pcre/pattern.modifiers.xml index 3963a24c3e..8cbb1cbedb 100644 --- a/reference/pcre/pattern.modifiers.xml +++ b/reference/pcre/pattern.modifiers.xml @@ -1,14 +1,9 @@ - + - - - Pattern Modifiers - Describes possible modifiers in regex - patterns - - - Description +
+ Pattern Modifiers + Describes possible modifiers in regex patterns The current possible PCRE modifiers are listed below. The names in parentheses refer to internal PCRE names for these modifiers. @@ -196,8 +191,7 @@ - - +
+ - - - Pattern Syntax - Describes PCRE regex syntax - + + Pattern Syntax + Describes PCRE regex syntax - +
Description The PCRE library is a set of functions that implement regular @@ -15,9 +13,9 @@ as Perl 5, with just a few differences (see below). The current implementation corresponds to Perl 5.005. - +
- +
Differences From Perl The differences described here are with respect to Perl 5.005. @@ -147,11 +145,11 @@ - +
- +
Regular Expression Details - +
Introduction The syntax and semantics of the regular expressions @@ -171,8 +169,8 @@ matches a portion of a subject string that is identical to itself. - - +
+
Meta-characters The power of regular expressions comes from the @@ -271,9 +269,9 @@ The following sections describe the use of each of the meta-characters. - +
- +
Backslash The backslash character has several uses. Firstly, if it is @@ -634,9 +632,9 @@ matches "foobar", the first substring is still set to "foo". - - - +
+ +
Unicode character properties Since PHP 4.4.0 and 5.1.0, three @@ -745,9 +743,9 @@ \d and \w do not use Unicode properties in PCRE. - +
- +
Circumflex and dollar Outside a character class, in the default matching mode, the @@ -805,9 +803,9 @@ whether PCRE_MULTILINE is set or not. - +
- +
Full stop Outside a character class, a dot in the pattern matches any @@ -825,9 +823,9 @@ in UTF-8 mode where full stop matches the whole character which can consist of multiple bytes. - +
- +
Square brackets An opening square bracket introduces a character class, @@ -915,9 +913,9 @@ start) and the terminating ] are non-special in character classes, but it does no harm if they are escaped. - +
- +
Vertical bar Vertical bar characters are used to separate alternative @@ -932,9 +930,9 @@ rest of the main pattern as well as the alternative in the subpattern. - +
- +
Internal option setting The settings of PCRE_CASELESS, @@ -1036,9 +1034,9 @@ the pattern than any of the additional features it turns on, even when it is at top level. It is best put at the start. - +
- +
Subpatterns Subpatterns are delimited by parentheses (round brackets), @@ -1117,9 +1115,9 @@ matches will contain the match indexed by the string alongside the match indexed by a number, then. - +
- +
Repetition Repetition is specified by quantifiers, which can follow any @@ -1298,9 +1296,9 @@ matches "aba" the value of the second captured substring is "b". - +
- +
Back references Outside a character class, a backslash followed by a digit @@ -1376,9 +1374,9 @@ \k<name>, \k'name', \k{name} or \g{name}. - +
- +
Assertions An assertion is a test on the characters following or @@ -1505,9 +1503,9 @@ Assertions count towards the maximum of 200 parenthesized subpatterns. - +
- +
Once-only subpatterns With both maximizing and minimizing repetition, failure of @@ -1621,9 +1619,9 @@ sequences of non-digits cannot be broken, and failure happens quickly. - +
- +
Conditional subpatterns It is possible to cause the matching process to obey a subpattern @@ -1696,9 +1694,9 @@ one of the two forms dd-aaa-dd or dd-dd-dd, where aaa are letters and dd are digits. - +
- +
Comments The sequence (?# marks the start of a comment which @@ -1712,9 +1710,9 @@ introduces a comment that continues up to the next newline character in the pattern. - +
- +
Recursive patterns Consider the problem of matching a string in parentheses, @@ -1805,9 +1803,9 @@ processed by certain patterns. - +
- +
Performances Certain items that may appear in patterns are more efficient @@ -1882,9 +1880,9 @@ whereas the latter takes an appreciable time with strings longer than about 20 characters. - - - +
+
+