rx_something_but | R Documentation |
This expression is almost identical to rx_anything_but()
with one major exception, a +
is used instead of a *
. This
means rx_something_but()
expects something whereas
rx_anything_but()
expects anything including... nothing!
rx_something_but(.data = NULL, value, mode = "greedy")
.data |
Expression to append, typically pulled from the pipe |
value |
Expression to optionally match |
mode |
Matching mode ( |
Metacharacters: https://www.regular-expressions.info/characters.html#special
Greedy and Lazy Quantifiers: https://www.regular-expressions.info/repeat.html#greedy
rx_something_but(value = "abc")
# create an expression
x <- rx_something_but(value = "python")
grepl(x, "R") # should be true
grepl(x, "py") # should be false
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.