Here you can find the source of removeCharacters()
String.prototype.removeCharacters = function() { //debugger;//from w w w. java2 s . c o m var twoStrings = this.split(", "), array2 = twoStrings[1], array1= twoStrings[0], temp = ""; for (var i = 0, length = array2.length; i < length; i++) { for (var j = 0, l = array1.length; j < l; j++) { if (array1[j] == array2[i]) { array1 = array1.remove(j); j--; } } } return array1; } console.log(line.removeCharacters());
String.prototype.removeBlackLines = function () { return this.replace(/\n[\s\t]*\r*\n/g, '\n'); };
String.prototype.removeBr = function() return this.replace(/(<br \/>|<br>)/g, ''); };
String.prototype.removeBreakLine = function() { return this.replace(/(\r\n|\n|\r)/gm," ");
'use strict'; var DEV_MODE = false; String.prototype.removeBreakTags = function() { var target = this; return target.replace(new RegExp('<br/>', 'g'), ' '); };
String.prototype.removeChar = function (character) { return this.replaceAll(character, "");
String.prototype.removeChars = function () { varReturnStr = "" ; for ( var inx = 0 ; inx < this.length ; inx++ ) { if ( this.substring( inx, inx+1 ) != "-") varReturnStr = varReturnStr + this.substring( inx, inx+1 ) ; return varReturnStr;
String.prototype.removeClasses = function(s) return this.replace(/style="[^"]*"|class="[^"]*"/gi, "");
String.prototype.removeComma = function() { return(this.replace(/,/g,''));
String.prototype.removeDiacritics = function() { var result = this.replace(/i/g, 'i') .replace(/?/, 'c'); return result;