extern crate regex; use regex::Regex; fn main() { let re = Regex::new(r"[a-z&&[x]]").unwrap(); println!("{}", re.is_match("bye")); }