powered by
Note that presser uses PERL regular expressions.
new_regexp(x)
String scalar containing a regular expression.
String with class presser_regexp.
presser_regexp
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.
new_regexp()
The 'Path specification' and 'Path parameters' chapters of the manual of new_app().
new_app()
# NOT RUN { new_regexp("^/api/match/(?<pattern>.*)$") # }
Run the code above in your browser using DataLab