I have string like this T 8.ESTÜTESTतुम मेरी
. Now using java regex i want to replace non-ascii character Ü
, तुम मेरी
with its equivalent code.
How can i achieve this?
I can replace it with any other string.
String str = "T 8.ESTÜTESTतुम मेरी";
String resultString = str.replaceAll("[^\\p{ASCII}]", "");
System.out.println(resultString);
It prints T 8.ESTTEST