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

From: Date: Tue, 29 Jul 2014 13:36:00 +0000
Subject: svn: /phpdoc/en/trunk/reference/pcre/ pattern.syntax.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12666@lists.php.net to get a copy of this message
salathe Tue, 29 Jul 2014 13:36:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=334411 Log: move bracket delimiters paragraph again 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 12:46:16 UTC (rev 334410) +++ phpdoc/en/trunk/reference/pcre/pattern.syntax.xml 2014-07-29 13:36:00 UTC (rev 334411) @@ -50,23 +50,6 @@ </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 - readability. - <informalexample> - <programlisting> -<![CDATA[ -/http:\/\// -#http://# -]]> - </programlisting> - </informalexample> - The <function>preg_quote</function> 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. - </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. <literal>()</literal>, @@ -87,6 +70,23 @@ escaped when they are used as literal characters. </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 + readability. + <informalexample> + <programlisting> +<![CDATA[ +/http:\/\// +#http://# +]]> + </programlisting> + </informalexample> + The <function>preg_quote</function> 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. + </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 (#12666) next »