str_between | R Documentation |
A stringr-like function to pull out a string between two string anchors
str_between(string, pattern1, pattern2)
string |
Input vector. Either a character vector, or something coercible to one. |
pattern1 |
Pattern that will act as starting anchor in extraction, and be excluded. The default interpretation is a regular expression, as described in stringi::stringi-search-regex. Control options with regex(). |
pattern2 |
Pattern that will act as ending anchor in extraction, and be excluded. |
string or vector of strings
# str_between("apple", "ap", "e")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.