diff --git a/reference/pcre/pattern.syntax.xml b/reference/pcre/pattern.syntax.xml index 80a7cb8bcb..8858f916e1 100644 --- a/reference/pcre/pattern.syntax.xml +++ b/reference/pcre/pattern.syntax.xml @@ -49,23 +49,6 @@ - - If the delimiter needs to be matched inside the pattern it must be - escaped using a backslash. If the delimiter appears often inside the - pattern, it is a good idea to choose another delimiter in order to increase - readability. - - - - - - The preg_quote function may be used to escape a string - for injection into a pattern and its optional second parameter may be used - to specify the delimiter to be escaped. - In addition to the aforementioned delimiters, it is also possible to use bracket style delimiters where the opening and closing brackets are the @@ -86,6 +69,23 @@ characters within the pattern, but as with other delimiters they must be escaped when they are used as literal characters. + + If the delimiter needs to be matched inside the pattern it must be + escaped using a backslash. If the delimiter appears often inside the + pattern, it is a good idea to choose another delimiter in order to increase + readability. + + + + + + The preg_quote function may be used to escape a string + for injection into a pattern and its optional second parameter may be used + to specify the delimiter to be escaped. + You may add pattern modifiers after the ending delimiter. The following is an example