Here you can find the source of removeAccents()
// hack for alphabetical sorting String.prototype.removeAccents = function(){ return this//w ww .ja v a2 s . co m .toLowerCase() .replace(/[?gi,"a") .replace(/[?gi,"e") .replace(/[?gi,"i") .replace(/[?/gi,"o") .replace(/[?gi, "u") .replace(/[^a-zA-Z0-9]/g," "); }
String.prototype.remove = function( start, length ) var s = '' ; if ( start > 0 ) s = this.substring( 0, start ) ; if ( start + length < this.length ) s += this.substring( start + length , this.length ) ; return s ;
String.prototype.remove = function (idx) { var arr = this.split(""); arr.splice(idx, 1); arr = arr.join(''); arr = arr.toString(); return arr;
String.prototype.remove = function (substr) { return this.replace(substr, ''); };
String.prototype.removeAccents = function() { var diacritics = [ [/[\300-\306]/g, 'A'], [/[\340-\346]/g, 'a'], [/[\310-\313]/g, 'E'], [/[\350-\353]/g, 'e'], [/[\314-\317]/g, 'I'], [/[\354-\357]/g, 'i'], [/[\322-\330]/g, 'O'], ...
String.prototype.removeAllSpaces = function () { return this.split(' ').join('');
String.prototype.removeBlackLines = function () { return this.replace(/\n[\s\t]*\r*\n/g, '\n'); };
String.prototype.removeBr = function() return this.replace(/(<br \/>|<br>)/g, ''); };