split white space re.split code example
Example: split a line on whitespace
fn main() {
let s = "line 1
line 2
line 3";
let chunks:Vec<_> = s.split_whitespace().collect();
println!("Sum of x and y = {:?} ", chunks);
}
fn main() {
let s = "line 1
line 2
line 3";
let chunks:Vec<_> = s.split_whitespace().collect();
println!("Sum of x and y = {:?} ", chunks);
}