use regex::Regex;

fn main() {
    let re = Regex::new(r"Rust").unwrap();
    let text = "Rust is amazing!";
    let result = re.replace(text, "Programming");
    println!("{}", result);
}