Lines Matching full:capture
29 // Test that an optional capture is cleared between two matches.
31 str = str.replace(/(\w)?X/g, function(match, capture) {
32 assertTrue(match.indexOf(capture) >= 0 ||
33 capture === undefined);
34 return capture ? capture.toLowerCase() : "-";
40 str = str.replace(/\b/g, function(match, capture) {
47 str = str.replace(/(?=(\w+))\b/g, function(match, capture) {
48 return capture.length;
80 //Test that an optional capture is cleared between two matches.
83 function(match, capture) {
84 assertTrue(match.indexOf(capture) >= 0 ||
85 capture === undefined);
86 return capture ? capture.toLowerCase() : "-";
92 str = str.replace(/\b/g, function(match, capture) {
99 str = str.replace(/(?=(\w+))\b/g, function(match, capture) {
100 return capture.length;
129 // Test capture that is a real substring.
137 str = str.replace(/\b(?=u(p))/g, function(match, capture) {
138 return capture.length;
160 // Small regexp (no capture);
164 // Small regexp (one capture).