Matches lower case letters only.
rx_lowercase(.data = NULL, inverse = FALSE)
.data | Expression to append, typically pulled from the pipe |
---|---|
inverse | Invert match behavior, defaults to |
rx_lowercase()#> [1] "[a-z]"rx_lowercase(inverse = TRUE)#> [1] "[^a-z]"# create an expression x <- rx_lowercase() y <- rx_lowercase(inverse = TRUE) # create input string <- "Apple 1!" # extract match regmatches(string, gregexpr(x, string))#> [[1]] #> [1] "p" "p" "l" "e" #>#> [[1]] #> [1] "A" " " "1" "!" #>