knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of inferregex is to infer the regular expression (regex)--along with other features--of a string.
You can install inferregex
from GitHub with:
remotes::install_github("inferregex")
library(inferregex) s <- "abcd-9999-ab9" infer_regex(s)$regex
library(purrr) (regex_df <- map_dfr(rownames(mtcars), infer_regex)) all(map2_lgl(regex_df$string, regex_df$regex, ~grepl(.y, .x)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.