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