List of usage examples for java.lang String replaceAll
public String replaceAll(String regex, String replacement)
From source file:Main.java
public static String UBB2MarkdownImage(String image) { return image.replaceAll("\\[image\\](.*?)\\[/image\\]", "![](" + "$1" + ")"); }
From source file:Main.java
private static String cleanNumber(String number) { return number.replaceAll("\\s", ""); }
From source file:Main.java
public static String compilePhone(String mobile) { return mobile.replaceAll("(?<=\\d{3})\\d(?=\\d{4})", "*"); }
From source file:Main.java
public static String cleanString(String cadena) { return cadena.replaceAll("\\s", ""); }
From source file:Main.java
public static String formatString(String s) { String temp = Normalizer.normalize(s, Normalizer.Form.NFD); return temp.replaceAll("[^\\p{ASCII}]", ""); }
From source file:Main.java
public static String RemoveAllNonDigits(String string) { return string.replaceAll("[^\\d+]+", ""); }
From source file:Main.java
public static String getDigitsString(String content) { return content.replaceAll("\\D+", ""); }
From source file:Main.java
public static String removeNumberDash(String number) { return number.replaceAll("-", ""); }
From source file:Main.java
public static String cleanNumber(String number) { return number.replaceAll("\\s", ""); }
From source file:Main.java
public static String getCleanPartNum(String partNum) { return partNum.replaceAll("[(][0-9]+[)]", ""); }