hadley/stringr — pull request #16 by tdhock (2011-12-25 20:59:01+00:00)
Title: named capture

Hi, I saw that you recently added perl functionality to stringr. I just hacked a little change to str_match() that switches to regexpr(,perl=TRUE) instead of regexec() for perl regexps. That way we can take advantage of named capture regular expressions in stringr, and so I added 1 test to make sure the capture group names get copied to the colnames() of the resulting match matrix.