powered by
Matches both letters (case insensitive) and numbers (a through z and 0 through 9).
rx_alnum(.data = NULL, inverse = FALSE)
Expression to append, typically pulled from the pipe %>%
%>%
Invert match behavior, defaults to FALSE (match alphanumeric characters). Use TRUE to not match alphanumeric characters.
FALSE
TRUE
# NOT RUN { rx_alnum() rx_alnum(inverse = TRUE) # create an expression x <- rx_alnum() # create input string <- "Apple 1!" # extract match regmatches(string, gregexpr(x, string)) # }
Run the code above in your browser using DataLab