makes more sense to store the lastIndex with the match. The change is consistent with the README :). Also, remove our marker from the string when finished.