I'm using a pattern to parse I wish to get all this
from the following html elements using regex but my current attempt fetches me <DIV>I wish</DIV> to get all this
instead.
This is how I tried:
import re
itemtxt = """
<TABLE>
<TR>
<TD><DIV>I wish</DIV></TD>
<TD>to</TD>
<TD>get all this</TD>
</TR>
</TABLE>
"""
matches = re.findall(r">(.*)<", itemtxt)
print(' '.join(matches))
How can I parse
I wish to get all this
from the above html elements using regex?