svn: /phpdoc/en/trunk/reference/pcre/ pattern.syntax.xml

From: Date: Tue, 29 Jul 2014 11:22:34 +0000
Subject: svn: /phpdoc/en/trunk/reference/pcre/ pattern.syntax.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12662@lists.php.net to get a copy of this message
salathe Tue, 29 Jul 2014 11:22:34 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=334408 Log: move bracket delimiters paragraph up a bit Changed paths: U phpdoc/en/trunk/reference/pcre/pattern.syntax.xml Modified: phpdoc/en/trunk/reference/pcre/pattern.syntax.xml =================================================================== --- phpdoc/en/trunk/reference/pcre/pattern.syntax.xml 2014-07-29 11:12:38 UTC (rev 334407) +++ phpdoc/en/trunk/reference/pcre/pattern.syntax.xml 2014-07-29 11:22:34 UTC (rev 334408) @@ -49,6 +49,18 @@ </informalexample> </para> <para> + In addition to the aforementioned delimiters, it is also possible to use + bracket style delimiters where the opening and closing brackets are the + starting and ending delimiter, respectively. + <informalexample> + <programlisting> +<![CDATA[ +{this is a pattern} +]]> + </programlisting> + </informalexample> + </para> + <para> 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 @@ -66,18 +78,6 @@ to specify the delimiter to be escaped. </para> <para> - In addition to the aforementioned delimiters, it is also possible to use - bracket style delimiters where the opening and closing brackets are the - starting and ending delimiter, respectively. - <informalexample> - <programlisting> -<![CDATA[ -{this is a pattern} -]]> - </programlisting> - </informalexample> - </para> - <para> You may add <link linkend="reference.pcre.pattern.modifiers">pattern modifiers</link> after the ending delimiter. The following is an example of case-insensitive matching:

« previous php.doc.cvs (#12662) next »