Learn R Programming

rebus (version 0.0-4)

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, ...)

Arguments

x
A regex object.
...
Passed from other format methods. Currently ignored.

Value

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

Examples

Run this code
group(1:5)
lookahead(1:5)

Run the code above in your browser using DataLab