Regular Expression Help Needed

<[email protected]> Thu, 08 Apr 2004 01:03:36 GMT
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <[email protected]>
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 w=
ith 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 appreciat=
ed.

Thanks in advance,

-Conrad