Get the number of hits for a series of regexes
get_num_hits(regex, x, fixed)
Arguments
regex |
vector of regular expressions against which to match |
x |
character vector where matches are sought |
fixed |
logical. If TRUE , regex are strings to be matched as is. |