> Thanks a lot. It worked well if the tags are on the same line. > But if the tag is broked to a few lines, it will not work. > eg. <!--abcd > eeeee > fff> re.DOTALL. Where to put that is left as an exercise for the reader. <wink> // m