format.regex: Print or format regex objects
Description
Prints/formats objects of class regex.Usage
# S3 method for regex
format(x, ...)# S3 method for regex
print(x, encode_string = FALSE, ...)
Arguments
...
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.