as_regex: Convert to a regular expressions

Description Usage Arguments Details Examples

View source: R/as_regex.R

Description

Converts an object to a regular expression for matching

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
as_regex(x, ...)

## Default S3 method:
as_regex(x, ...)

## S3 method for class 'fs_ext'
as_regex(x, ...)

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

Arguments

x

an object to convert to a regular expression

Details

as_regex() converts pattern

Examples

1
2
  as_regex("pattern")
  as_regex( ext('rds') )

decisionpatterns/cache documentation built on June 15, 2020, 9:35 p.m.