This expression is almost identical to anything_but()
with one major exception, a +
is used instead of a *
. This
means something_but()
expects something whereas
anything_but()
expects anything including... nothing!
something_but(.data = NULL, value)
.data | Expression to append, typically pulled from the pipe |
---|---|
value | Expression to optionally match |
Metacharacters: https://www.regular-expressions.info/characters.html#special
something_but(value = "abc")#> [1] "(?:[^abc]+)"#> [1] TRUE#> [1] FALSE