public static void main(String[] args) {
String content = "total 12345n" +
"drwxr-xr-x. 6 root root 55 Oct 26 11:08 u001B[0mu001B[01;34mTestu001B[0mn" +
"-rw-r--r--. 1 root root 79779840 Oct 26 13:43 u001B[01;31mtest.taru001B[0mn" +
"drwxr-xr-x. 2 root root 46 Oct 26 11:06 u001B[01;34mxxlu001B[0mn";
System.out.println("----------------------------------------------------------------------------------");
System.out.println(content);
System.out.println("----------------------------------------------------------------------------------");
System.out.println(content.replaceAll("\e\[[\d;]*[^\d;]", ""));
System.out.println("----------------------------------------------------------------------------------");
}
public static final String REPLACE_REGEX_COLOR = "\e\[[\d;]*[^\d;]";