Contact: aviboots(AT)netvision.net.il
38,589 questions
50,273 answers
573 users
fn main() { let mut str = String::from("c++ php go c python php phpphphp php rust"); let word = "php"; let replacewith = "RUST"; str = str.replace(word, replacewith); println!("{}", str); } /* run: c++ RUST go c python RUST RUSTRUSThp RUST rust */