From e7b8a859328d19de61486e36ee74ae35f0786aca Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 25 Mar 2012 09:31:17 +0000 Subject: [PATCH] Delete bogus double backslash git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324523 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/regex/functions/ereg-replace.xml | 6 +++--- reference/regex/functions/eregi-replace.xml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/reference/regex/functions/ereg-replace.xml b/reference/regex/functions/ereg-replace.xml index 28d877630e..649d36dbf7 100644 --- a/reference/regex/functions/ereg-replace.xml +++ b/reference/regex/functions/ereg-replace.xml @@ -40,9 +40,9 @@ If pattern contains parenthesized substrings, replacement may contain substrings of the form - \\digit, which will be + \digit, which will be replaced by the text matching the digit'th parenthesized substring; - \\0 will produce the entire contents of string. + \0 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. @@ -127,7 +127,7 @@ echo $string; /* Output: 'This string has 4 words.' */ [:space:]]+[[:alnum:]/]", - "\\0", $text); + '\\0', $text); ?> ]]> diff --git a/reference/regex/functions/eregi-replace.xml b/reference/regex/functions/eregi-replace.xml index 76d1f0b640..f5b8b2f368 100644 --- a/reference/regex/functions/eregi-replace.xml +++ b/reference/regex/functions/eregi-replace.xml @@ -40,9 +40,9 @@ If pattern contains parenthesized substrings, replacement may contain substrings of the form - \\digit, which will be + \digit, which will be replaced by the text matching the digit'th parenthesized substring; - \\0 will produce the entire contents of string. + \0 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.