Thanks, i just tried it but I got the same result. I've been thinking about it for a few hours now and the problem with this approach is that the .*? before the (?=tag2) may have matched a tag1 and i don't know how to detect it.
And even if I could, how would I make the search reset its start position to the second tag1 it found? -- http://mail.python.org/mailman/listinfo/python-list