Jim Beard wrote:

Ok,

I know this isn't exactly the list for it, but I've been reading online for a while now and can't make heads or tails of my problem. I want to match convert '&lt;' sequences to '<' using a replace method that matches on a regex pattern. I'm using Java and am having 0 luck. No sites online seem to mention & or ; other then in passing as a punctuation character...

Shouldn't this be easy?

Jim Beard
I don't do anything in java, so I apologize in advance if this is a dumb question ... can one embed 'sed' in java? If so,
{
       s/&lt;/</g
       s/&gt;/>/g
}
(or some expansion on the theme) will do what you want, I believe.
Regards
Fred James

_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to