Dear all,
I am trying to do something like this
fn main() {
let s = "{{\"bssid\" : \"c4:e9:84:f1:b6:46\"}}";
println!("replaced {:?}", s.replace("\\", "test"));
}
The result is s “{{“bssid” : “c4:e9:84:f1:b6:46”}}“
However I want the \ in the s to be replace with nothing. I want to have something like
”{{“bssid” : “c4:e9:84:f1:b6:46”}}”