http://qs321.pair.com?node_id=1074782


in reply to Regex shows only last match multiple times?

aha,
Answering my own question..
Obviously I should use while as opposed to foreach as it otherwise keeps interpolating the variable $1