strsplit_capture: Split a string, keeping separator regions
Description
Split a string, keeping separator regions
Usage
strsplit_capture(
x,
split,
...,
ignore.case = FALSE,
fixed = FALSE,
perl = FALSE,
useBytes = FALSE
)
Arguments
x
character string to split (length 1 vector)
...
force later arguments to bind by name
Value
list of string segments annotated with is_sep.
Examples
Run this code# NOT RUN {
strsplit_capture("x is .(x) and x+1 is .(x+1)", "\\.\\([^()]+\\)")
# }
Run the code above in your browser using DataLab