I would expect this line of JavaScript:
foo bar baz.match(/^(s*w+)+$/)
to return something like:
[foo bar baz, foo, bar, baz]
but instead it returns only the last captured match:
[foo bar baz, baz]
Is there a way to get all the captured matches?