If you are looking for HTML tags or something like that. Have a look at the HTMLParser (docs.python.org).
On 4 Jul 2005 03:37:02 -0700, jwaixs <[EMAIL PROTECTED]> wrote: > Thank you for your replies, it's much obvious now. I know more what I > can and can't do with the re module. But is it possible to search for > more than one string in the same line? > > bv. I want to replace the <python> with " " > </python> with "\n" and every thing that's not between the two python > tags must begin with "\nprint \"\"\"" and end with "\"\"\"\n"? Or do I > need more than one call? > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list