Lines Matching refs:replace

381       .replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g, '')
382 .replace(/\s+/g, '').split(',');
482 return String(str).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
592 return this.replace(/^\s+/, '').replace(/\s+$/, '');
596 return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi, '');
600 return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), '');
616 return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
620 return this.stripTags().replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&');
659 return this.replace(/-+(.)?/g, function(match, chr) {
669 return this.replace(/::/g, '/')
670 .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2')
671 .replace(/([a-z\d])([A-Z])/g, '$1_$2')
672 .replace(/-/g, '_')
677 return this.replace(/_/g, '-');
681 var escapedString = this.replace(/[\x00-\x1f\\]/g, function(character) {
687 if (useDoubleQuotes) return '"' + escapedString.replace(/"/g, '\\"') + '"';
688 return "'" + escapedString.replace(/'/g, '\\\'') + "'";
692 return this.replace(filter || Prototype.JSONFilter, '$1');
698 str = str.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@');
699 str = str.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']');
700 str = str.replace(/(?:^|:|,)(?:\s*\[)+/g, '');
708 json = json.replace(cx, function (a) {
805 var comp = match[1].startsWith('[') ? match[2].replace(/\\\\]/g, ']') : match[1];
2058 replace: function(element, content) { method in Element.Methods
2317 element.className = element.className.replace(
2561 return filter.replace(/alpha\([^\)]*\)/gi,'');
2770 Element.Methods.replace = function(element, content) { function
4139 match[1] = (match[1] || "").replace(/\\/g, "");
4351 match = " " + match[1].replace(/\\/g, "") + " ";
4392 var name = match[1].replace(/\\/g, "");
4927 selector = selector.replace( Expr.match.PSEUDO, "" );