Learn R Programming

ds4psy (version 0.4.0)

metachar: metachar provides R metacharacters (as a character vector).

Description

metachar provides the metacharacters of extended regular expressions (as a character vector).

Usage

metachar

Arguments

Format

An object of class character of length 12.

Details

metachar allows illustrating the notion of meta-characters in regular expressions (and provides corresponding exemplars).

See ?base::regex for details.

See Also

cclass for a vector of character classes.

Other text objects and functions: Umlaut, capitalize(), caseflip(), cclass, count_chars(), count_words(), l33t_rul35, read_ascii(), text_to_sentences(), text_to_words(), transl33t()

Examples

Run this code
# NOT RUN {
metachar
length(metachar)  # 12
nchar(paste0(metachar, collapse = ""))  # 12

# }

Run the code above in your browser using DataLab