Lines Matching refs:regex
3 use regex;
11 // regex and the input. Other dynamic tests explicitly set the engine to use.
14 use regex::Regex;
19 macro_rules! regex {
27 use regex::RegexSet;
66 assert!(regex::Regex::new(r"(?-u)\xFF").is_err());
67 assert!(regex::Regex::new(r"(?-u).").is_err());
68 assert!(regex::Regex::new(r"(?-u)[\xFF]").is_err());
69 assert!(regex::Regex::new(r"(?-u)☃").is_err());
74 assert!(regex::Regex::new(r"\0").is_err());
79 assert!(regex::RegexBuilder::new(r"\0").octal(true).build().is_ok());
84 use regex::bytes;
85 use regex::{Regex, RegexBuilder, RegexSet, RegexSetBuilder};
130 // See: https://github.com/rust-lang/regex/issues/568
133 use regex::Regex;
139 // See: https://github.com/rust-lang/regex/issues/750
145 use regex::bytes;
146 use regex::{Regex, RegexSet};
154 // See: https://github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8
157 // We test that our regex compiler will correctly return a "too big" error when
160 // At the time this test was written, the regex compiler does not represent
163 // to an unconditional JUMP in the regex bytecode (i.e., an unconditional
166 // doesn't actually contribute any additional memory to the compiled regex
172 // do nothing for a decently large amount of time. It causes the regex to take
173 // quite a bit of time to compile, despite the concrete syntax of the regex
182 // This particular test is somewhat narrow. It merely checks that regex
184 // fix landed, this test would eventually fail because the regex would be
190 use regex::Regex;
199 use regex::Regex;
209 use regex::Regex;
218 use regex::Regex;