Note that webfakes uses PERL regular expressions.

new_regexp(x)

## Arguments

x String scalar containing a regular expression.

## Value

String with class webfakes_regexp.

## Details

As R does not have data type or class for regular expressions, you can use new_regexp() to mark a string as a regular expression, when adding routes.

The 'Path specification' and 'Path parameters' chapters of the manual of new_app().
new_regexp("^/api/match/(?<pattern>.*)$") #> <webfakes_regexp> "^/api/match/(?<pattern>.*)$"