List of utility methods to do String Decamel Case
String | decamelizeAndReplaceByHyphen(String s) Replaces the Capital letters with lower letters and prefixed with a hyphen if not in the beginning of the string. return s.trim().replaceAll("(\\p{Ll})(\\p{Lu})", "$1 $2").replaceAll(" ", "-").toLowerCase(); |