From 0155d14f5743964d91e9c64b14dc481e005c7923 Mon Sep 17 00:00:00 2001 From: Peter Cowburn Date: Tue, 29 Jul 2014 13:36:00 +0000 Subject: [PATCH] move bracket delimiters paragraph again git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334411 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcre/pattern.syntax.xml | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) 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