Answers for "replace multiple spaces in a string with one space rust"

0

rust in a string, replace multiple spaces with single space

let re = Regex::new(r"s+").unwrap();
let t = re.replace_all(s, " ");
Posted by: Guest on February-24-2021

Code answers related to "replace multiple spaces in a string with one space rust"

Browse Popular Code Answers by Language