Learn R Programming

ds4psy (version 0.7.0)

metachar: metachar provides 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 on regular expressions and ?"'" for a list of character constants/quotes in R.

See Also

cclass for a vector of character classes.

Other text objects and functions: Umlaut, capitalize(), caseflip(), cclass, count_chars_words(), count_chars(), count_words(), l33t_rul35, map_text_chars(), map_text_coord(), map_text_regex(), read_ascii(), text_to_chars(), 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