View source: R/util_extract_matches.R
util_extract_matches | R Documentation |
return all matches of an expression
util_extract_matches(data, pattern)
data |
TODO |
pattern |
TODO |
TODO
Josh O'Brien
## Not run: # not exported, so not tested
dat0 <- list("a sentence with citation (Ref. 12), (Ref. 13), and then (Ref. 14)",
"another sentence without reference")
pat <- "Ref. (\\d+)"
util_extract_matches(dat0, pat)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.