This expression is almost identical to rx_anything()
with one major exception, a + is used instead of a *. This
means rx_something() expects something whereas
anything() expects anything including... nothing!
rx_something(.data = NULL, mode = "greedy")
| .data | Expression to append, typically pulled from the pipe |
|---|---|
| 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()#> [1] "(.+)"#> [1] TRUE#> [1] FALSE#> [1] TRUE