Hai iam using str.replaceAll("/[^a-zA-Z 0-9]+/g","");
String str = "Hai ? hello : abc ^ ";
str.replaceAll("/[^a-zA-Z 0-9]+/g","");
for replacing the special characters in a String str
the regular expression is working in javascript and it is not working here in java
Can anyone let me know how to replace the specail characters with empty in a String in Java
Advaced Thanks,
sutr kam

New Topic/Question
This topic is locked




MultiQuote




|