The Rre2 package wraps the re2 regular expression library.
r install.packages('devtools')
r devtools::install_github("jdidion/Rre2")
Note: only tested on OSX 10.9
Rre2 is currently in alpha stage. You can match a string to a regular expression and extract captured groups from the result. For example:
library(Rre2)
re <- RegExpRE2$new('([ab])')
match <- re$match('a')
match$group(1) # prints 'a'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.