use regex::Regex;

fn main() {
    let re = Regex::new(r"Rust").unwrap();
    let text = "Learning Rust is fun!";
    if re.is_match(text) {
        println!("Found a match!");
    } else {
        println!("No match found.");
    }
}