Skip to content

Instantly share code, notes, and snippets.

@aammd
Forked from lauratboyer/getmatch.r
Created July 24, 2013 19:06
Show Gist options
  • Save aammd/6073489 to your computer and use it in GitHub Desktop.
Save aammd/6073489 to your computer and use it in GitHub Desktop.
getmatch <<- function(x,str2match,...) {
unlist(regmatches(x,regexpr(str2match,x,...))) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment