rx_alnum: Match alphanumeric characters.

Description Usage Arguments Examples

Description

Matches both letters (case insensitive) and numbers (a through z and 0 through 9).

Usage

1
rx_alnum(.data = NULL, inverse = FALSE)

Arguments

.data

Expression to append, typically pulled from the pipe %>%

inverse

Invert match behavior, defaults to FALSE (match alphanumeric characters). Use TRUE to not match alphanumeric characters.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
rx_alnum()
rx_alnum(inverse = TRUE)

# create an expression
x <- rx_alnum()

# create input
string <- "Apple 1!"

# extract match
regmatches(string, gregexpr(x, string))

VerbalExpressions/RVerbalExpressions documentation built on May 14, 2019, 11:02 p.m.