Fix badmatch with Regex.captures(%r/(.)/g, "cat")
Merge pull request #1041 from pragdave/fix-regex-run

Fix badmatch with Regex.captures(%r/(.)/g, "cat")