You and BrowserUK had what I almost came up with the other night. When switching from split to re/g, I was missing the part about it scanning to the next match, skipping stuff that doesn't match (spaces).
Hmm, but that means it will silently skip syntax errors, too! I wonder...