reduce To Alpha Numerics with Regex : Digit Number « Regular Expressions « Java
- Java
- Regular Expressions
- Digit Number
reduce To Alpha Numerics with Regex
public class Strings {
public static String reduceToAlphaNumerics(String value) {
return value.replaceAll("[^0-9a-zA-Z]+", " ");
}
}
Related examples in the same category