View source: R/string-handling.R
str_extract_before | R Documentation |
Extracts content of strings that appear before or after a pattern.
str_extract_before(
string,
pattern,
match = "^.*",
negate = FALSE,
cut.right = TRUE,
cut.left = TRUE
)
str_extract_after(
string,
pattern,
match = ".*$",
negate = FALSE,
cut.right = TRUE,
cut.left = TRUE
)
string |
Character value. |
pattern |
The regular expression that matches the part of the string before/after which is looked. (Not included in the output.) |
match |
The regular expression that is matched to the part of the string
before/after |
cut.left , cut.right |
Logical value. If TRUE, empty space of the remaining string is removed on the left/right side. Defaults to TRUE. |
Character value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.