fn highlight_dodo(s: &str) -> String {
    let reg_exp = Regex::new("(?P<k>dodo)").unwrap();
    let format = format!("{}$k{}", color::Fg(color::Red), color::Fg(color::Reset));
    reg_exp.replace_all(s, format.as_str()).to_string()
}
// This prints out the text back onto the screen
This prints out the text back onto the screen
This prints out the text back onto the screen
fn highlight_dodo(s: &str) -> String {
    let reg_exp = Regex::new("(?P<k>dodo)").unwrap();
    let format = format!("{}$k{}", color::Fg(color::Red), color::Fg(color::Reset));
    reg_exp.replace_all(s, format.as_str()).to_string()
}
fn highlight_dodo ( s : & str ) -> String { let reg_exp = Regex :: new ( " " ) . unwrap ( ) ; let format = format ! ( " " color Fg ( color Red ) color Fg ( color Reset ) ) ; reg_exp . replace_all ( s , format . as_str ( ) ) . to_string ( ) }
This prints out the text back onto the screen
This prints out the text back onto the screen
s
&str
s
&str