Yes, but I was looking for a solution which would scale. Searching through the same string 10000+++ times does not seem like a suitable solution.
André
Just for curiosity, what would a regexp do? Perhaps it's a clue in how you could do this in the way regexp's are executed.
ola
-- -------------------------------------- Ola Natvig <[EMAIL PROTECTED]> infoSense AS / development -- http://mail.python.org/mailman/listinfo/python-list