Description Usage Arguments Details Value See Also Examples
Note that presser uses PERL regular expressions.
1 | new_regexp(x)
|
x |
String scalar containing a regular expression. |
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.
String with class presser_regexp
.
The 'Path specification' and 'Path parameters' chapters
of the manual of new_app()
.
1 | new_regexp("^/api/match/(?<pattern>.*)$")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.