What regular expression can I use to remove the letters Â
and Ä
from a String?
Regards, Raj
What regular expression can I use to remove the letters Â
and Ä
from a String?
Regards, Raj
As discussed here, I'd just whitelist these characters: ^[a-zA-Z0-9äöüÄÖÜ]*$
Java Regexs support unicode, you could find the unicode codes and something like this
myNewString = myString.replaceAll("\u0000", "")