Learn R Programming

dataquieR (version 2.0.1)

util_extract_matches: return all matches of an expression

Description

return all matches of an expression

Usage

util_extract_matches(data, pattern)

Value

TODO

Arguments

data

TODO

pattern

TODO

Author

Josh O'Brien

See Also

Examples

Run this code
if (FALSE)  # 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)

Run the code above in your browser using DataLab