R: Character class escapes

character_class_escape {rex} | R Documentation

## Character class escapes

### Description

Character class escapes

### Usage

    character_class_escape(x)

    ## S3 method for class 'regex'
    character_class_escape(x)

    ## S3 method for class 'character_class'
    character_class_escape(x)

    ## S3 method for class 'character'
    character_class_escape(x)

    ## S3 method for class 'list'
    character_class_escape(x)

    ## Default S3 method:
    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`.

[Package rex version 1.1.2 Index]