rx_lowercase: Match lower case letters.

View source: R/special_characters.R

rx_lowercaseR Documentation

Match lower case letters.

Description

Matches lower case letters only.

Usage

rx_lowercase(.data = NULL, inverse = FALSE)

Arguments

.data

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

inverse

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

Examples

rx_lowercase()
rx_lowercase(inverse = TRUE)

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

# create input
string <- "Apple 1!"

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

RVerbalExpressions documentation built on May 29, 2024, 6:47 a.m.