use regex::Regex; fn main() { let re = Regex::new(r"^a.*z$").unwrap(); let text = "abcdefghijklmnopqrstuvwxyz"; println!("Does it match? {}", re.is_match(text)); }