Javascript String decamel()
decamel()
String.prototype.decamel = function() { return this.replace(/[A-Z][a-z_-]*/g, function(txt) { return txt + ' '; }).trim();// w ww . j a va 2 s. c o m };