| Line 23... |
Line 23... |
| 23 |
If \code{invert} is \code{TRUE} (default), \code{regmatches} extracts
|
23 |
If \code{invert} is \code{TRUE} (default), \code{regmatches} extracts
|
| 24 |
the matched substrings as specified by the match data. For vector
|
24 |
the matched substrings as specified by the match data. For vector
|
| 25 |
match data (as obtained from \code{\link{regexpr}}), empty matches are
|
25 |
match data (as obtained from \code{\link{regexpr}}), empty matches are
|
| 26 |
dropped; for list match data, empty matches give empty components
|
26 |
dropped; for list match data, empty matches give empty components
|
| 27 |
(zero-length character vectors).
|
27 |
(zero-length character vectors).
|
| 28 |
|
28 |
|
| 29 |
If \code{invert} is \code{FALSE}, \code{regmatches} extracts the
|
29 |
If \code{invert} is \code{FALSE}, \code{regmatches} extracts the
|
| 30 |
non-matched substrings, i.e., the strings are split according to the
|
30 |
non-matched substrings, i.e., the strings are split according to the
|
| 31 |
matches similar to \code{\link{strsplit}} (for vector match data, at
|
31 |
matches similar to \code{\link{strsplit}} (for vector match data, at
|
| 32 |
most a single split is performed).
|
32 |
most a single split is performed).
|
| 33 |
|
33 |
|