On May 25, 6:51 am, Jia Lu <[EMAIL PROTECTED]> wrote:
> Hi all
>
> I'm trying to parsing html with re module.
>
> html = """
>
>
>
> DATA1DATA2DATA3 HT>DATA4
>
>
> DATA5DATA6DATA7DATA8
>
>
> """
>
> I want to get DATA1-8 from that string.(DATA maybe not english words.)
> Can anyone tell me h
Thorsten Kampe ha scritto:
>> I'm trying to parsing html with re module.
> Just don't. Use an HTML parser like BeautifulSoup
Or HTMLParser/htmllib. of course you can mix those and re, it'll be
easier than re only.
--
|\/|55: Mattia Gentilini e 55 = log2(che_palle_sta_storia) (by mezzo)
|/_| ETI
Thorsten Kampe ha scritto:
>> I'm trying to parsing html with re module.
> Just don't. Use an HTML parser like BeautifulSoup
Or HTMLParser/htmllib
--
|\/|55: Mattia Gentilini e 55 = log2(che_palle_sta_storia) (by mezzo)
|/_| ETICS project at CNAF, INFN, Bologna, Italy
|\/| www.getfirefox.com ww
* Jia Lu (25 May 2007 04:51:35 -0700)
> I'm trying to parsing html with re module.
> [...]
> Can anyone tell me how to do it with regular expression in python?
Just don't. Use an HTML parser like BeautifulSoup
--
http://mail.python.org/mailman/listinfo/python-list
Hi all
I'm trying to parsing html with re module.
html = """
DATA1DATA2DATA3DATA4
DATA5DATA6DATA7DATA8
"""
I want to get DATA1-8 from that string.(DATA maybe not english words.)
Can anyone tell me how to do it with regular expression in python?
Thank you very much.
--
http://mail.py