str_within {DesignLibrary} | R Documentation |
Takes substring between matched strings. Avoids dependency on stringr package.
str_within(string, pattern = "^(structure\\()|(, \\.Names)")
string |
A string. String from which substring is extracted. |
pattern |
A regular expression that matches the beggining and end of a substring |