You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by "Daniel F. Savarese" <df...@savarese.org> on 2001/12/04 01:08:02 UTC

Re: Perl5Util Substitute and Backslash

>which I would expect to replace all occurrences of "\par " with "\r\n", but
>it ends up replacing "\par " with "\\r\n". Essentially it is not replacing

It is replacing par with \r\n.  You need "\\\\par" instead of "\\par"
If you don't understand why, consider that "\n" is handled as a Java
string by the Java compiler, but "\\n" is interpreted as a Perl expression
by jakarta-oro.  "\\n" corresponds to "\n" in Perl.

daniel



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>