Learn R Programming

rex (version 1.2.1)

character_class_escape: Character class escapes

Description

Character class escapes

Usage

character_class_escape(x)

# S3 method for regex character_class_escape(x)

# S3 method for character_class character_class_escape(x)

# S3 method for character character_class_escape(x)

# S3 method for list character_class_escape(x)

# S3 method for default character_class_escape(x)

Arguments

x

Object to escape.

Methods (by class)

  • regex: objects are passed through unchanged.

  • character_class: objects are passed through unchanged.

  • character: objects properly escaped for character classes.

  • list: call character_class_escape on all elements of the list.

  • default: coerce to character and character_class_escape.