f*cking re module

Cyril BAZIN cyril.bazin at gmail.com
Mon Jul 4 07:11:51 EDT 2005


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 <jwaixs at gmail.com> 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
>



More information about the Python-list mailing list