Description Usage Arguments Details Examples
Control case-insensitive matching.
1 | rx_with_any_case(.data = NULL, enable = TRUE)
|
.data |
Expression to append, typically pulled from the pipe |
enable |
Whether to enable this behavior |
Equivalent to adding or removing the i modifier.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | rx_with_any_case()
# case insensitive
x <- rx() %>%
rx_find("abc") %>%
rx_with_any_case()
# case sensitive
y <- rx() %>%
rx_find("abc") %>%
rx_with_any_case(enable = FALSE)
grepl(x, "ABC") # should be true
grepl(y, "ABC") # should be false
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.