Android examples for java.util.regex:Blank Remove
replace Control Chars in a string
import java.util.Arrays; public class Main{ public static String replaceControlChars(String original) { return original.replaceAll("[\\a\\e\\f\\n\\r\\t]", " "); }/*from w w w. j a v a2 s. c o m*/ }