in reply to Re: A query on greedy regexps
in thread A query on greedy regexps

Oops, you are of course right - just re-ran the code, and it finds the first element but that's it

I actually had your suggestion originally (more or less) and just dropped it down to one regex and it seemed to work - yet another perfect example of why I shouldn't make assumptions about what seems simple code.