svn: /phpdoc/en/trunk/reference/regex/functions/ ereg-replace.xml eregi-replace.xml

From: Date: Sun, 25 Mar 2012 09:31:17 +0000
Subject: svn: /phpdoc/en/trunk/reference/regex/functions/ ereg-replace.xml eregi-replace.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9945@lists.php.net to get a copy of this message
vrana Sun, 25 Mar 2012 09:31:17 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=324523 Log: Delete bogus double backslash Changed paths: U phpdoc/en/trunk/reference/regex/functions/ereg-replace.xml U phpdoc/en/trunk/reference/regex/functions/eregi-replace.xml Modified: phpdoc/en/trunk/reference/regex/functions/ereg-replace.xml =================================================================== --- phpdoc/en/trunk/reference/regex/functions/ereg-replace.xml 2012-03-25 08:39:30 UTC (rev 324522) +++ phpdoc/en/trunk/reference/regex/functions/ereg-replace.xml 2012-03-25 09:31:17 UTC (rev 324523) @@ -40,9 +40,9 @@ <para> If <parameter>pattern</parameter> contains parenthesized substrings, <parameter>replacement</parameter> may contain substrings of the form - <literal>\\<replaceable>digit</replaceable></literal>, which will be + <literal>\<replaceable>digit</replaceable></literal>, which will be replaced by the text matching the digit'th parenthesized substring; - <literal>\\0</literal> will produce the entire contents of string. + <literal>\0</literal> will produce the entire contents of string. Up to nine substrings may be used. Parentheses may be nested, in which case they are counted by the opening parenthesis. </para> @@ -127,7 +127,7 @@ <![CDATA[ <?php $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", - "<a href=\"\\0\">\\0</a>", $text); + '<a href="\\0">\\0</a>', $text); ?> ]]> </programlisting> Modified: phpdoc/en/trunk/reference/regex/functions/eregi-replace.xml =================================================================== --- phpdoc/en/trunk/reference/regex/functions/eregi-replace.xml 2012-03-25 08:39:30 UTC (rev 324522) +++ phpdoc/en/trunk/reference/regex/functions/eregi-replace.xml 2012-03-25 09:31:17 UTC (rev 324523) @@ -40,9 +40,9 @@ <para> If <parameter>pattern</parameter> contains parenthesized substrings, <parameter>replacement</parameter> may contain substrings of the form - <literal>\\<replaceable>digit</replaceable></literal>, which will be + <literal>\<replaceable>digit</replaceable></literal>, which will be replaced by the text matching the digit'th parenthesized substring; - <literal>\\0</literal> will produce the entire contents of string. + <literal>\0</literal> will produce the entire contents of string. Up to nine substrings may be used. Parentheses may be nested, in which case they are counted by the opening parenthesis. </para>

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