Lines Matching refs:re
39 function assertFlags(re, global, multiline, ignoreCase) { argument
40 var name = re + " flag: ";
41 (global ? assertTrue : assertFalse)(re.global, name + "g");
42 (multiline ? assertTrue : assertFalse)(re.multiline, name + "m");
43 (ignoreCase ? assertTrue : assertFalse)(re.ignoreCase, name + "i");
46 var re = /a/; variable
47 assertFlags(re, false, false, false)
49 re = /a/gim;
50 assertFlags(re, true, true, true)
52 re = RegExp("a","");
53 assertFlags(re, false, false, false)
55 re = RegExp("a", "gim");
56 assertFlags(re, true, true, true)
126 var re = /a/gmi;
127 assertFlags(re, true, true, true)