Android examples for java.util.regex:Character Pattern
String split Camel Case by regex
public class Main{ private static String splitCamelCase(String s) { return s.replaceAll(String.format("%s|%s|%s", "(?<=[A-Z])(?=[A-Z][a-z])", "(?<=[^A-Z])(?=[A-Z])", "(?<=[A-Za-z])(?=[^A-Za-z])"), " "); }//from www. ja va 2s .c o m }