The operator %o~% is used to retain the only the part of the
that matches the regular expression.
txt %o~% pattern
In case where parts of the regular expression are surrounded by brackets, the operator returns a matrix with as many lines as the length of txt and as many columns as chunks of regular expressions.
Romain Francois email@example.com
x <- c("foobar","barfooooooooooooobar") x %o~% "fo+"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.