Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

format.regex

Print or format regex objects


Description

Prints/formats objects of class regex.

Usage

## 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

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

rebus.base

Core Functionality for the 'rebus' Package

v0.0-3
Unlimited
Authors
Richard Cotton [aut, cre]
Initial release
2017-04-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.