rx_lowercase: Match lower case letters.

Description Usage Arguments Examples

View source: R/special_characters.R

Description

Matches lower case letters only.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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 Nov. 6, 2019, 5:08 p.m.