From 3ed85ceb3b75db3eb88ff0fb8095a09f5a264aa0 Mon Sep 17 00:00:00 2001 From: Daniel Egeberg <degeberg@php.net> Date: Sun, 10 Jan 2010 00:55:54 +0000 Subject: [PATCH] Removed extra whitespace from comments and added CDATA sequences. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293340 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcre/pattern.syntax.xml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/reference/pcre/pattern.syntax.xml b/reference/pcre/pattern.syntax.xml index 88f81ddc5d..12ddffa130 100644 --- a/reference/pcre/pattern.syntax.xml +++ b/reference/pcre/pattern.syntax.xml @@ -39,10 +39,12 @@ following are all examples of valid delimited patterns. <informalexample> <programlisting> - /foo bar/ - #^[^0-9]$# - +php+ - %[a-zA-Z0-9_-]% +<![CDATA[ +/foo bar/ +#^[^0-9]$# ++php+ +%[a-zA-Z0-9_-]% +]]> </programlisting> </informalexample> </para> @@ -53,8 +55,10 @@ readability. <informalexample> <programlisting> - /http:\/\// - #http://# +<![CDATA[ +/http:\/\// +#http://# +]]> </programlisting> </informalexample> The <function>preg_quote</function> function may be used to escape a string @@ -67,7 +71,9 @@ starting and ending delimiter, respectively. <informalexample> <programlisting> - {this is a pattern} +<![CDATA[ +{this is a pattern} +]]> </programlisting> </informalexample> </para> @@ -77,7 +83,9 @@ of case-insensitive matching: <informalexample> <programlisting> - #[a-z]#i +<![CDATA[ +#[a-z]#i +]]> </programlisting> </informalexample> </para>