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 co...@runbox.com on 2004/04/08 03:03:36 UTC

Regular Expression Help Needed

Hi, I'm using the Oro tools and I would like to do the following:

Part 1:

given the expression: [0x0]

I would simply like to remove it from the text string.

Part 2:

given the expression:  [\r]

I would like to replace it with \n

At this time, I can locate the carriage return (i.e. [\r]) and replace it with a newline character (i.e. \n) but I don't know how to write one regular expression and one substitute expression that would do all of the above.  If anyone has any ideas as to how to do this, it would be greatly appreciated.

Thanks in advance,

-Conrad

---------------------------------------------------------------------
To unsubscribe, e-mail: oro-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-user-help@jakarta.apache.org