Lines Matching refs:re
3 let re = regex!(""); in empty_regex_empty_match() localVariable
4 assert_eq!(vec![(0, 0)], findall!(re, "")); in empty_regex_empty_match()
9 let re = regex!(""); in empty_regex_nonempty_match() localVariable
10 assert_eq!(vec![(0, 0), (1, 1), (2, 2), (3, 3)], findall!(re, "abc")); in empty_regex_nonempty_match()
15 let re = regex!(r"[0-9]*"); in one_zero_length_match() localVariable
16 assert_eq!(vec![(0, 0), (1, 2), (3, 4)], findall!(re, "a1b2")); in one_zero_length_match()
21 let re = regex!(r"[0-9]*"); in many_zero_length_match() localVariable
24 findall!(re, "a1bbb2") in many_zero_length_match()
30 let re = regex!(r"[0-9]?"); in many_sequential_zero_length_match() localVariable
33 findall!(re, "a12b3c") in many_sequential_zero_length_match()
39 let re = regex!(r"([\x{5b}\x{5d}])"); in quoted_bracket_set() localVariable
40 assert_eq!(vec![(0, 1), (1, 2)], findall!(re, "[]")); in quoted_bracket_set()
41 let re = regex!(r"([\[\]])"); in quoted_bracket_set() localVariable
42 assert_eq!(vec![(0, 1), (1, 2)], findall!(re, "[]")); in quoted_bracket_set()
47 let re = regex!(r"([\[-z])"); in first_range_starts_with_left_bracket() localVariable
48 assert_eq!(vec![(0, 1), (1, 2)], findall!(re, "[]")); in first_range_starts_with_left_bracket()
53 let re = regex!(r"([\[-\x{5d}])"); in range_ends_with_escape() localVariable
54 assert_eq!(vec![(0, 1), (1, 2)], findall!(re, "[]")); in range_ends_with_escape()
59 let re = regex!(r".*?"); in empty_match_find_iter() localVariable
60 assert_eq!(vec![(0, 0), (1, 1), (2, 2), (3, 3)], findall!(re, "abc")); in empty_match_find_iter()
65 let re = regex!(r".*?"); in empty_match_captures_iter() localVariable
66 let ms: Vec<_> = re in empty_match_captures_iter()
76 let re = regex!(r"(.)(?P<a>.)"); in capture_names() localVariable
77 assert_eq!(3, re.captures_len()); in capture_names()
78 assert_eq!((3, Some(3)), re.capture_names().size_hint()); in capture_names()
81 re.capture_names().collect::<Vec<_>>() in capture_names()
94 let re = regex!(r"^(?P<name>.+)$"); in capture_index() localVariable
95 let cap = re.captures(t!("abc")).unwrap(); in capture_index()
105 let re = regex!(r"^(?P<name>.+)$"); in capture_index_panic_usize() localVariable
106 let cap = re.captures(t!("abc")).unwrap(); in capture_index_panic_usize()
114 let re = regex!(r"^(?P<name>.+)$"); in capture_index_panic_name() localVariable
115 let cap = re.captures(t!("abc")).unwrap(); in capture_index_panic_name()
124 let re = regex!(r"(?P<number>[0-9]+)"); in capture_index_lifetime() localVariable
125 let caps = re.captures(t!(s)).unwrap(); in capture_index_lifetime()
133 let re = regex!(r"(.)(?P<a>a)?(.)(?P<b>.)"); in capture_misc() localVariable
134 let cap = re.captures(t!("abc")).unwrap(); in capture_misc()
158 let re = regex!(r"([a-z])(([a-z])|([0-9]))"); in sub_capture_matches() localVariable
159 let cap = re.captures(t!("a5")).unwrap(); in sub_capture_matches()