>> import sre_parse >> print sre_parse.parse(rx) >> >> the rest is just a small matter of programming. Klaus> I'm not sure it's just a small matter of programming for me... http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?SMOP Skip