View source: R/str_extract_sandwich.R
str_extract_sandwich | R Documentation |
Extracts strings sandwiched between specified strings.
str_extract_sandwich(string, start_pattern, end_pattern, perl = FALSE)
string |
Input vector. Either a character vector, or something coercible to one. |
start_pattern |
Specifies the first character of the string to be extracted. It must be different from the last character, |
end_pattern |
Specifies the last character of the string to be extracted. It must be different from the first character, |
perl |
logical. Should Perl-compatible regexps be used? |
The specified string must be a single character or three characters including the escape, and the first and last characters of the string must be different.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.