On 10-Mar-08, at 23:28 , Jerry Krinock wrote:
David, someone is lying to you. Please try this.
From http://www.pcre.org/pcre.txt read:
"a backslash followed by a digit greater than 0 (and possibly
further digits) is a back reference to a capturing sub- pattern"
From http://www.icu-project.org/userguide/regexp.html read:
$n The text of capture group n will be substituted for $n."
No, $1 etc. is also used in Perl RE. The \1 format refers to back
references INSIDE the capture pattern, while the $1, $2 etc. refers to
references in the substitution pattern to a capture group. Both are
available in bot Perl and ICU.
ICU regular expressions ARE Perl regular expressions, From ICU page
you reference:
ICU's Regular Expressions package provides applications with the
ability to apply regular _expression_ matching to Unicode string data.
The regular _expression_ patterns and behavior are based on Perl's
regular expressions.