Matches any single letter (A-Z, a-z) or digit (0-9).

xp_build_alnum(pattern = NULL)

Arguments

pattern

(Optional) An existing pattern from a pipe.

Value

A regexpert object.

Examples

# Match a string of 8 alphanumeric characters (like a serial number)
xp_build_alnum() %>% xp_op_repeat(8)
#> <regexpert pattern>
#>   (?:[A-Za-z0-9]){8}