Lines Matching refs:replace
31 str = str.replace(/(\w)?X/g, function(match, capture) {
40 str = str.replace(/\b/g, function(match, capture) {
47 str = str.replace(/(?=(\w+))\b/g, function(match, capture) {
54 str = str.replace(/(not?)|(do)|(try)/gi,
67 str = str.replace(/(FOUR|TWO) LEGS (GOOD|BAD)/g,
82 str = str.replace(/(\w)?\u1234/g,
92 str = str.replace(/\b/g, function(match, capture) {
99 str = str.replace(/(?=(\w+))\b/g, function(match, capture) {
106 str = str.replace(/(not?)|(d\u26aa)|(try)/gi,
119 str = str.replace(/(FOUR|TWO) \u817f (GOOD|BAD)/g,
131 str = str.replace(/(.*)/g, function(match) { return '~'; });
137 str = str.replace(/\b(?=u(p))/g, function(match, capture) {
179 "deadbeef".replace(/(dead)beef/, "$1holeycow");
181 assertEquals(result_expectation, subject.replace(regexps[i], replacement));
198 "deadbeef".replace(/(dead)beef/, "$1holeycow");
252 var result = subject.replace(/~/g, replacement);