Lines Matching refs:replace
35 assertEquals(result, subject.replace(pattern, replacement), name);
200 + m.replace(/./g,"$&$&") + "-"
201 + m.replace(/./g,function() { return RegExp['$&']; })
214 str.replace(re,"$$" + 'sch'))
218 assertEquals("axc", "abc".replace(/b/, replace_obj));
219 assertEquals("axc", "abc".replace(/b/g, replace_obj));
222 assertEquals("axc", "abc".replace(search_obj, function() { return "x"; }));
228 assertEquals("abc", "abc".replace(/z/g, replace_obj_side_effects));
242 subject.replace(re, "$" + i));
248 subject.replace(re, "$0" + i));
251 assertEquals("$0", subject.replace(re, "$0"));
252 assertEquals("$00", subject.replace(re, "$00"));
254 subject.replace(re, "$100"));
270 subject.replace(re, "$" + i));