What do you want to save?
Add Code snippet
New code examples
-
Rust 2021-10-17 21:59:10
split text on multiple separators and put into a list
use regex::Regex; fn main() { // split text on multiple separators and put into a list let q = "The quick brown fox jumps over the lazy dog's back"; let separator = Regex::new(r"([ ,.]+)").expect("Invalid regex"... Add solution
Best helpers
Aung68618
+5
Csamson
+5
Irfanullah
+5
Slacker70
+5
Max Song
+5
Michael Wang
+5
Kudlatiger
+5
Denis
+5
Another Geek
+5
Phoog
+5
DweebsUnited
+5
SabareeshSS
+5