BTW, there is a very fine Regular Expression HOWTO at http://py-howto.sourceforge.net/regex/regex.html Gregor