in reply to Re: Re: foreach (shenanigans)
in thread foreach (shenanigans)

I am going to guess with the while you neglected to add the g modifier to the regular expression, and thus it would have evaluated only once.

update:misread the question. my err.

-enlil