A regular expression (see
for details)
to split by. By default, parts of the input strings that match this are
cut out and the remaining parts are returned. However, if
keep
=
TRUE, this matches the parts of the string
to return.
OPTIONAL ARGUMENTS:
extended
If
TRUE then
split
is taken to be an "extended" regular expression. Otherwise it is taken
to be an "obsolete" (or "basic") regular expression.
fixed
If
TRUE then
split
is taken to be a fixed string to match, not a regular expression at all.
No characters are special.
ignore.case
If
TRUE then upper and lower case letters
are considered identical when matching the regular expression
split
to the text argument
x.
perl
If
TRUE then
split
is taken to be a perl regular expression. (This is not supported yet.)
keep
If
TRUE then the parts of the input strings
that match
split will be returned. Otherwise
the parts of the input strings that match
split
are considered to be the separators and are omitted.
subpattern
If the regular expression includes parenthesized subpatterns, then
subpattern=n means to use the n'th
matched subpattern to split by. Subpatterns are counted by the
number of left parentheses from the left. The default,
subpattern=0,
means to use the match for the entire pattern.
VALUE:
A list the length of the
x. Each element
is a vector of character strings representing the split up strings.
SEE ALSO:
For the details of the syntax of the various sorts of
regular expression patterns, see
.