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.