patternDivision {operators} | R Documentation |
split a character vector by a regular expression
txt %/~% rx
txt |
text to manipulate |
rx |
regular expression |
A character vector. For convenience, this function does not return a list
as strsplit
does.
%/~%
uses strsplit
to split the strings. Logical arguments
of strsplit
can be indirectly modified using the operators.strsplit
option declared as part of this package. For example, it uses perl regular expressions
by default. See %but%
for a description.
Romain Francois <francoisromain@free.fr>
"Separate these words by spaces" %/~% " +" ### From ?strsplit unlist(strsplit("a.b.c", "\\.")) "a.b.c" %/~% "\\."