format.regex: Print or format regex objects

Description Usage Arguments Value Examples

View source: R/regex-methods.R

Description

Prints/formats objects of class regex.

Usage

1
2
3
4
5
## S3 method for class 'regex'
format(x, ...)

## S3 method for class 'regex'
print(x, encode_string = FALSE, ...)

Arguments

x

A regex object.

...

Passed from other format methods. Currently ignored.

encode_string

If TRUE, the regex is encoded with encodeString. This means that backslashes are doubled, compared to the default of FALSE.

Value

format.regex returns a character vector. print.regex is invoked for the side effect of printing the regex object.

Examples

1
2
group(1:5)
lookahead(1:5)

rebus.base documentation built on May 29, 2017, 6:13 p.m.

Search within the rebus.base package
Search all R packages, documentation and source code