util_extract_matches: return all matches of an expression

View source: R/util_extract_matches.R

util_extract_matchesR Documentation

return all matches of an expression

Description

return all matches of an expression

Usage

util_extract_matches(data, pattern)

Arguments

data

TODO

pattern

TODO

Value

TODO

Author(s)

Josh O'Brien

See Also

Stack Overflow

Examples

## 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)

dataquieR documentation built on July 26, 2023, 6:10 p.m.