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 Phillip Rhodes <rh...@telerama.com> on 2002/08/18 04:48:59 UTC

can't substitute in a newline?

I am trying to do a substitution where I will append a new line to a 
match.  I am trying to make a lot of code more readable by putting new 
lines in.

So given a regex of (if.*)
and a substitution of $1\r\n

Using ORO, it matches, but the newline does not appear.  I tried escaping 
it as $1\\r\\n, but then a literal "\r\n" appears in the result.

I will keep hammering away.  Any help would be appreciated.




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