search regular expression
Marian Förster
marian.foerster at informatik.tu-chemnitz.de
Thu Feb 13 21:41:24 EST 2003
i need a regular expression to found table like:
<table cel....>
<tr>
<td><a href=jjjjj><img src="ffff.... alt="Frame verlassen> sdksdsdkl
text1
text2
</td>
</tr>
</table>
with
patt=re.compile(>table.*>(?=.*Frame
verlassen)(?P<INHALT>.*)</table>",re.S|re.I|re.DOTALL)
and patt.search( table input )
only found text at beginning of <img........
but I need text at beginning from <table cel....
More information about the Python-list
mailing list