Replace set of characters with another set of characters in a string .
Posted on 2011-10-06
I have set of special characters that will not be accepted by my system , so I am palnnin to replace each with a equivalent character so that wen i send them back i can recover the original symbols . Do we have any classes in java that can help me or will I have to iterate the whole string to find and replace ? Replace or pattern classes do not help me .
$ replaced wit E
& reaplced wit A
I have a lot more like this , so i should be able to detect the strings that have these special charater and replace that character with an equivalent . So any classes methods should help, or ill go the round way of loopin and searchin each and everycharacter .