re_class: Construct REGEX class from character vector

Description Usage Arguments Details Examples

View source: R/re_class.R

Description

Creates a regular expression class from a character vector

Usage

1
re_class(x, reverse = FALSE)

Arguments

x

character; character vectors

reverse

logical; whether to reverse the class (not implemented)

Details

Builds a regex class from character vector. A regular expression class are character elements that are surrounded by [ and ]' and match ANY member of that class.

Examples

1
re_class( letters[1:3] )  # [abc]

decisionpatterns/stringr.tools documentation built on Nov. 4, 2019, 10:24 a.m.