pattern: a character string containing a regular expression
Returns
A list with matching elements or NULL (in case on non-matching elements)
Examples
## Not run:# not exported, so not testeddat0 <- 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)