jonmagic/scriptular — pull request #16 by johnkpaul (2012-04-12 20:16:59+00:00)
Title: fix issue #6 by resetting regex lastIndex

This one took some digging. I didn't realize how regular expression matching worked in javascript, but I learned a lot in the process. In order to get multiple matched groups in global searches, I have to reset the [lastIndex](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/RegExp/lastIndex) of the regular expression as I search.