Replacing with backrefs does not work, can anybody explain why?

"Val Starovoitov" <[email protected]> Thu, 5 Jun 2003 16:09:34 +0930
Newsgroups gmane.comp.jakarta.regexp.user
Message-ID <005d01c32b2d$3b06a600$0100a8c0@p4xp>
Hi, 
probably it is a question to developers:

Backrefs work fine in the search string, but do not work in replace string.

Example1 
(in replace - does not work):

new RE( "(..)ple").subst ( "Apple is tasty", "\\1ricot");
Returns:             "\1ricot is tasty"
My expectation:   "Apricot is tasty"


Example2 
(in search - does work):
new RE( "(.)=\\1").subst ( "0=0 is correct", "1=1");
Returns:             "1=1 is correct"

Regards,
Val Starovoitov.