powered by
split a character vector by a regular expression
txt %/~% rx
A character vector. For convenience, this function does not return a list as strsplit does.
strsplit
text to manipulate
regular expression
Romain Francois <francoisromain@free.fr>
grep, gsub
"Separate these words by spaces" %/~% " +" ### From ?strsplit unlist(strsplit("a.b.c", "\\.")) "a.b.c" %/~% "\\."
Run the code above in your browser using DataLab