Home | History | Annotate | Download | only in regexp

Lines Matching refs:digits

43 	var digits = "1234567890";
45 // be sure all digits are matched by \d
47 "'" + digits + "'.match(new RegExp('\\d+'))",
48 String([digits]), String(digits.match(new RegExp('\\d+'))));
50 // be sure all non-digits are matched by \D
55 // be sure all non-digits are not matched by \d
60 // be sure all digits are not matched by \D
62 "'" + digits + "'.match(new RegExp('\\D'))",
63 null, digits.match(new RegExp('\\D')));
65 var s = non_digits + digits;
67 // be sure all digits are matched by \d
70 String([digits]), String(s.match(new RegExp('\\d+'))));
72 var s = digits + non_digits;
74 // be sure all non-digits are matched by \D
81 // be sure all digits match individually
82 for (i = 0; i < digits.length; ++i)
84 s = 'ab' + digits[i] + 'cd';
87 String([digits[i]]), String(s.match(new RegExp('\\d'))));
90 String([digits[i]]), String(s.match(/\d/)));