Lines Matching refs:replace

222   return text.replace(arguments.callee.sRE, '\\$1');
235 return target.replace(
242 return target.replace(
248 return str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
283 text = text.replace(/^\xEF\xBB\xBF|\x1A/, "");
287 text = text.replace(/\r\n?/g, "\n", text);
302 text = text.replace(/^[ ]+$/m, "");
380 var content2 = content.replace('\\2', '\\3');
457 text = text.replace(all, function(match, text) {
509 text = text.replace(new RegExp(
581 return text.replace(new RegExp(
617 return text.replace(/ {2,}\n/mg, function(match) {
642 link_id = link_id.replace(/[ ]?\n/, ' ');
674 var cheatText = text.replace(/[^\[^\]^\n^\s]/gm, '');
676 text = text.replace(new RegExp(
701 cheatText = text.replace(/[^\(^\)^\[^\]^\s]/gm, '').replace(/\(.*?\)/,'()');
703 text = text.replace(new RegExp(
751 text = text.replace(new RegExp(
773 cheatText = text.replace(/[^!^\[^\]^\n^\s]/gm, '').replace(/\[\s*\]/g, '[]');
775 text = text.replace(new RegExp(
824 cheatText = text.replace(/[^!^\(^\)^\[^\]^\n^\s]/gm, '').replace(/\[\s*\]/g, '[]');
826 text = text.replace(new RegExp(
878 text = text.replace(/^(.+?)[ ]*\n(=+|-+)[ ]*\n+/mg, function(match, span, line) {
896 text = text.replace(new RegExp(
980 text = text.replace(new RegExp('^' + whole_list_re, "mg"), _doLists_callback);
983 text = text.replace(new RegExp(
1029 list_str = list_str.replace(/\n{2,}(?=\x03)/m, "\n");
1034 list_str = list_str.replace(new RegExp(
1055 item = item.replace(/\n+$/m, '');
1073 text = text.replace(new RegExp(
1092 codeblock = codeblock.replace(/(?=\x02)\n+|\n+(?=\x03)/g, '');
1289 text = text.replace(new RegExp(
1302 bq = bq.replace(/^[ ]*>[ ]?|^[ ]+$/mg, '');
1305 bq = bq.replace(/^/mg, " ");
1308 bq = bq.replace(/(\\s*<pre>[\\s\\S]+?<\/pre>)/mg, function(match, pre) {
1310 pre = pre.replace(/^ /m, '');
1327 text = text.replace(/(?:\x02)\n+|\n+(?:\x03)/g, "");
1351 value = value.replace(/^([ ]*)/, "<p>");
1409 text = text.replace(/"/g, '&quot;');
1420 text = text.replace(/&/g, '&amp;');
1424 text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/, '&amp;');
1427 text = text.replace(/</g, '&lt;');
1434 text = text.replace(/<((https?|ftp|dict):[^'">\s]+)>/i, function(match, address) {
1442 text = text.replace(new RegExp(
1650 return text.replace(new RegExp('^(\\t|[ ]{1,' + this.tab_width + '})', 'mg'), '');
1666 return text.replace(/^.*\t.*$/mg, function(line) {
1687 return text.replace(/(.)\x1A[0-9]+\1/g, function(match) {
1953 parts[0] = _void + parts[0].replace(/\n/g, newline) + _void;
2205 tag = tag.replace(markdown_attr_re, '');
2237 block_text = block_text.replace(new RegExp('/^[ ]{1,' + indent + '}', 'm'), "");
2291 text = text.replace(new RegExp(
2314 text = text.replace(new RegExp(
2345 head = head.replace(/[|] *$/m, '');
2346 underline = underline.replace(/[|] *$/m, '');
2347 content = content.replace(/[|] *$/m, '');
2416 text = text.replace(new RegExp(
2435 content = content.replace(/^ *[|]/m, '');
2448 text = text.replace(new RegExp(
2516 text = text.replace(new RegExp(
2547 list_str = list_str.replace(/\n{2,}(?=\\x03)/, "\n");
2550 list_str = list_str.replace(new RegExp(
2574 list_str = list_str.replace(new RegExp(
2625 text = text.replace(new RegExp(
2648 codeblock = codeblock.replace(/^\n+/, function(match) {
2667 text = text.replace(/(?:\x02)\n+|\n+(?:\x03)/g, "");
2716 text = text.replace(new RegExp(
2745 text = text.replace(/\[\^(.+?)\]/g, "F\x1Afn:$1\x1A:");
2779 attr = attr.replace(/%%/g, num);
2790 text = text.replace(/F\x1Afn:(.*?)\x1A:/g, _appendFootnotes_callback);
2818 footnote = footnote.replace(/F\x1Afn:(.*?)\x1A:/g, _appendFootnotes_callback);
2820 attr = attr.replace(/%%/g, ++num);
2853 text = text.replace(new RegExp(
2877 text = text.replace(new RegExp(