rx_uppercase {RVerbalExpressions} | R Documentation |
Matches upper case letters only.
rx_uppercase(.data = NULL, inverse = FALSE)
.data |
Expression to append, typically pulled from the pipe |
inverse |
Invert match behavior, defaults to |
rx_uppercase()
rx_uppercase(inverse = TRUE)
# create an expression
x <- rx_uppercase()
y <- rx_uppercase(inverse = TRUE)
# create input
string <- "Apple 1!"
# extract match
regmatches(string, gregexpr(x, string))
regmatches(string, gregexpr(y, string))