Hello everybody,
I wanted to use re.sub to strip all HTML tags out of a given string. I
learned that there are better ways to do this without the re module,
but I would like to know why my code is not working. I use the
following:
def stripHtml(source):
source = re.sub([\n\r\f], , source)
On Tue, 07 Aug 2007 10:28:24 -0700, Christoph Krammer wrote:
Hello everybody,
I wanted to use re.sub to strip all HTML tags out of a given string. I
learned that there are better ways to do this without the re module,
but I would like to know why my code is not working. I use the
On 2007-08-07, Christoph Krammer [EMAIL PROTECTED] wrote:
Hello everybody,
I wanted to use re.sub to strip all HTML tags out of a given string. I
learned that there are better ways to do this without the re module,
but I would like to know why my code is not working. I use the
following:
Neil Cerutti schrieb:
In other words, the fourth argument to sub is count, not a set of
re flags.
I knew it had to be something very stupid.
Thanks a lot.
--
http://mail.python.org/mailman/listinfo/python-list