rx_alpha: Match alphabetic characters.

View source: R/special_characters.R

rx_alphaR Documentation

Match alphabetic characters.

Description

Matches letters (case insensitive) only.

Usage

rx_alpha(.data = NULL, inverse = FALSE)

Arguments

.data

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

inverse

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

Examples

rx_alpha()
rx_alpha(inverse = TRUE)

# create an expression
x <- rx_alpha()

# create input
string <- "Apple 1!"

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

VerbalExpressions/RVerbalExpressions documentation built on March 27, 2024, 8:20 a.m.