public class RemoveSpecialCharacters {
public static void main(String[] args) {
String str = "Hello, World! 123";
System.out.println(str.replaceAll("[^a-zA-Z0-9.,]", ""));
}
}
For further actions, you may consider blocking this person and/or reporting abuse
Latest comments (0)