Lines Matching refs:replace
29 "abcd".replace(re, function() { });
45 "abcdabcd".replace(/b/g, function() { });
58 "abcd".replace(re, function() { });
76 "abcdabcd".replace(/(b)(c)/g, function() { });
95 "abcdabcd".replace(/(b)(c)/g, function() { });
109 OverrideCase(function() { return input.replace(re, "x"); });
110 OverrideCase(function() { return input.replace(re_g, "x"); });
111 OverrideCase(function() { return input.replace(re, ""); });
112 OverrideCase(function() { return input.replace(re_g, ""); });
135 no_last_match(function() { "foo".replace("f", ""); });
136 no_last_match(function() { "foo".replace("f", "f"); });
141 no_last_match(function() { cons.replace("x", "y"); });
142 no_last_match(function() { cons.replace("e", "E"); });
148 "bar.foo baz......".replace(/(ba.).*?f/g, function() { return "x";});
154 var a = "foo bar baz".replace(/^|bar/g, "");
157 a = "foo bar baz".replace(/^|bar/g, "*");