how to remove all special characters from a string in java
String str= "This#string%contains^special*characters&.";
str = str.replaceAll("[^a-zA-Z0-9]", " ");
System.out.println(str);
Also in Java:
- foreach in java
- java next permutation
- java create directory
- how to check type of primitive value in java
- how to initiate a queue in java
- java file class
- creating file in specific location in java application
- cannot lock java compile cache as it has already been locked by this process
- blurview android github
- inheritance in java
- java get an int from a char
- 2d array java
- how timer class and display to jtextfield w3schools in java
- resurce leak java
- substring in java
- convert from integer to character java
- java define custom exception
- android how to know when snackbar is done
- convert java list to array
- how lock horizontal orientation android
- Java copy file
- java map geeksforgeeks
- how to declare an array in java
- find the triplet sum in java linked list