rx_uppercase: Match upper case letters.

View source: R/special_characters.R

rx_uppercaseR Documentation

Match upper case letters.

Description

Matches upper case letters only.

Usage

rx_uppercase(.data = NULL, inverse = FALSE)

Arguments

.data

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

inverse

Invert match behavior, defaults to FALSE (match upper case). Use TRUE to not match upper case.

Examples

rx_uppercase()
rx_uppercase(inverse = TRUE)

# create an expression
x <- rx_uppercase()
y <- rx_uppercase(inverse = TRUE)

# create input
string <- "Apple 1!"

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

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