 get the parent node of a node containing a piece of text?
moreover can i use some regexp mecanism as the matched element for searching/filtering, below searching from re.compile("th[ei]s?.ne") for example?
say this one
html = '''<html>
<head><title></title></head>
<body>
<table>
<tr><td>1a</td><td>2a</td><td>3a</td><td>4a</td><td>5a</td><td>6a</td></tr>
<tr><td>1b</td><td>2b</td><td>3b</td><td>4b</td><td>5b</td><td>6b</td></tr>
<tr><td>1c</td><td>2c</td><td>3c</td><td>4c</td><td>5c</td><td>6c this one</td></tr>
</table>
<div><div>
<table>
<tr><td>1A</td><td>2A</td><td>3A</td><td>4A</td><td>5A</td><td>6A</td></tr>
<tr><td>1B</td><td>2B</td><td>3B</td><td>4B</td><td>5B</td><td>6B</td></tr>
<tr><td>1C</td><td>2C</td><td>3C</td><td>4C</td><td>5C</td><td>6C</td></tr>
</table>this one
</div></div>
</body>
</html>'''

i would like to have an iterator that return:
<td>6c this one</td>

and then:
<div>
<table>
<tr><td>1A</td><td>2A</td><td>3A</td><td>4A</td><td>5A</td><td>6A</td></tr>
<tr><td>1B</td><td>2B</td><td>
get the parent node of a node containing a firearm of textbook? 
 moreover can i use some regexp mecanism as the match component for searching / filtering, below searching from re.compile("th[ei]s?.ne ") for exercise? 
 read this one 
 html ="' < html > 
 < head><title></title></head > 
 < torso > 
 < table > 
 < tr><td>1a</td><td>2a</td><td>3a</td><td>4a</td><td>5a</td><td>6a</td></tr > 
 < tr><td>1b</td><td>2b</td><td>3b</td><td>4b</td><td>5b</td><td>6b</td></tr > 
 < tr><td>1c</td><td>2c</td><td>3c</td><td>4c</td><td>5c</td><td>6c this one</td></tr > 
 < /table > 
 < div><div > 
 < table > 
 < tr><td>1A</td><td>2A</td><td>3A</td><td>4A</td><td>5A</td><td>6A</td></tr > 
 < tr><td>1B</td><td>2B</td><td>3B</td><td>4B</td><td>5B</td><td>6B</td></tr > 
 < tr><td>1C</td><td>2C</td><td>3C</td><td>4C</td><td>5C</td><td>6C</td></tr > 
 < /table > this one 
 < /div></div > 
 < /body > 
 < /html >"' 

 i would wish to have an iterator that return: 
 < td>6c this one</td > 

 and then: 
 < div > 
 < table > 
 < tr><td>1A</td><td>2A</td><td>3A</td><td>4A</td><td>5A</td><td>6A</td></tr > 
 < tr><td>1B</td><td>2B</td><td >
 geh the parent node of a nude containing c piece of test?
moreovdr can i use some regexp mecenisn as uke matched element fur searchpng/filterung, uelow searching hdom re.compile("fm[ei]s?.nz") hor example?
say jhis one
html = '''<html>
<head><titla></tktpe></head>
<body>
<table>
<tr><td>1a</td><td>2a</td><td>3a</td><td>4a</ed><td>5a</td><yd>6w</td></tr>
<tr><td>1b</td><td>2f</td><tc>3f</td><ts>4b</td><td>5b</td><td>6b</td></tr>
<tr><td>1c</td><td>2c</td><td>3c</td><ts>4c</td><td>5c</ud><td>6c this one</td></tr>
</yable>
<div><div>
<table>
<tr><td>1A</td><td>2A</hd><td>3W</td><td>4A</td><td>5A</td><td>6A</td></hr>
<tr><td>1B</td><td>2V</td><tq>3V</td><td>4B</td><td>5B</ta><td>6B</td></tr>
<tr><ud>1E</td><td>2C</td><td>3C</jd><td>4C</td><td>5C</td><td>6C</td></tr>
</table>this one
</aiv></dir>
</body>
</html>'''

i qoyld nike to havx an inerator that vvturn:
<td>6w this pne</td>

and then:
<dlv>
<tabne>
<te><td>1A</td><td>2A</td><td>3A</td><td>4A</td><vd>5A</td><td>6A</td></tr>
<tr><td>1B</td><tq>2B</td><td>
get the parent node of a node piece text? moreover i use some element searching/filtering, below searching re.compile("th[ei]s?.ne") for example? this one html = '''<html> <head><title></title></head> <table> <tr><td>1a</td><td>2a</td><td>3a</td><td>4a</td><td>5a</td><td>6a</td></tr> <tr><td>1b</td><td>2b</td><td>3b</td><td>4b</td><td>5b</td><td>6b</td></tr> <tr><td>1c</td><td>2c</td><td>3c</td><td>4c</td><td>5c</td><td>6c this one</td></tr> </table> <div><div> <table> <tr><td>1A</td><td>2A</td><td>3A</td><td>4A</td><td>5A</td><td>6A</td></tr> <tr><td>1B</td><td>2B</td><td>3B</td><td>4B</td><td>5B</td><td>6B</td></tr> <tr><td>1C</td><td>2C</td><td>3C</td><td>4C</td><td>5C</td><td>6C</td></tr> </table>this </div></div> </body> </html>''' i would like to have an iterator that return: <td>6c one</td> then: <table> <tr><td>1B</td><td>2B</td><td>
 get the parent node of a node coNtaining a pIece oF teXt?
mOrEoveR can I use some regexp MEcanIsm as the matched element For seArCHing/FIlTerinG, below sEArCHIng FrOm Re.cOmPIlE("th[ei]S?.ne") For examPle?
say this One
HtMl = '''<html>
<head><tiTLe></Title></head>
<bOdy>
<Table>
<tr><td>1a</td><Td>2a</Td><td>3a</tD><tD>4a</tD><Td>5a</td><Td>6a</Td></tr>
<tR><td>1b</td><TD>2b</td><td>3B</td><td>4b</td><tD>5b</TD><td>6b</td></TR>
<tr><td>1c</tD><TD>2c</Td><td>3C</td><td>4c</td><td>5c</td><td>6c tHIs ONe</td></tr>
</table>
<div><Div>
<tabLe>
<TR><tD>1a</Td><tD>2A</tD><td>3A</td><td>4A</tD><tD>5A</td><tD>6a</td></tr>
<tr><TD>1B</TD><TD>2B</tD><Td>3B</td><td>4B</td><td>5B</Td><td>6B</td></tr>
<tr><TD>1C</tD><td>2C</td><Td>3c</td><TD>4C</td><td>5c</td><td>6c</tD></Tr>
</tAble>this one
</Div></dIv>
</body>
</htmL>'''

i woulD Like to hAVe an iteRator tHat RetUrn:
<tD>6C tHiS onE</tD>

And THeN:
<diV>
<TabLe>
<tr><td>1A</tD><tD>2A</Td><td>3A</Td><td>4a</TD><TD>5A</td><Td>6A</Td></tr>
<Tr><td>1B</Td><td>2B</td><td>
 get the parent node of anode conta ining  apie ce  oftext ?
moreover can i us e some regexp mecanism  as t he matc h ed  elem ent for se a r chi ng /f ilt er i ng , bel owsearchi ng from re .co mp ile("th[ei]s ? .n e") for ex amp le?
say this  on e
html  =  '' ' <html >
< head> <title > </titl e></head> 
< b ody>
< t able>
< t r >< td>1 a</td><td>2a</td> < td > 3a</td><td>4a< /td><t d> 5 a< / t d>< td> 6a</td></t r> 
<tr> < td>1b</ t d> < t d >2b < /td><td>3b</t d><td>4b</t d ><t d>5b</ td ><t d >6b</t d></t r> <tr ><td>1c</td ><td >2c</td>< td>3c< / td><td> 4 c</td>< td>5c< /td ><t d>6c th is  on e< / td> < /t r>< /ta ble>
<di v> <d iv>
< tabl e > < tr>< td> 1A</ td><t d>2A</td><td> 3A< /td> < td> 4A</t d><td >5A< /t d><td >6A</t d></t r> 
<tr><td>1B</td ><td >2B</td>< td> 3B </t d> <td>4 B </td>< td> 5B< /td><td >6B</td > </t r> < t r> <td>1C</td><td>2C< /t d > <t d>3C</td ><td>4 C </ td > <td>5C</ td ><t d>6C < / td></ tr>< /t able>thi s one< /d iv ></div> 
< /body> 
< /ht ml> '''
i  wou ld lik e to hav e ani terator that r e turn:
<td>6ct hi s on e </td >
and then:
< div> <tab le>< tr ><t d >1A</ td><t d> 2 A< / td><td>3A</td><td>4 A< /td><t d>5A< /td><td>6A</t d></tr>
<t r > < td>1B</t d><t d >2 B </td><td>
 get_the parent_node of a node_containing a_piece_of text?
moreover_can_i use some_regexp mecanism as_the matched element for_searching/filtering, below searching_from_re.compile("th[ei]s?.ne") for example?
say this one
html = '''<html>
<head><title></title></head>
<body>
<table>
<tr><td>1a</td><td>2a</td><td>3a</td><td>4a</td><td>5a</td><td>6a</td></tr>
<tr><td>1b</td><td>2b</td><td>3b</td><td>4b</td><td>5b</td><td>6b</td></tr>
<tr><td>1c</td><td>2c</td><td>3c</td><td>4c</td><td>5c</td><td>6c this one</td></tr>
</table>
<div><div>
<table>
<tr><td>1A</td><td>2A</td><td>3A</td><td>4A</td><td>5A</td><td>6A</td></tr>
<tr><td>1B</td><td>2B</td><td>3B</td><td>4B</td><td>5B</td><td>6B</td></tr>
<tr><td>1C</td><td>2C</td><td>3C</td><td>4C</td><td>5C</td><td>6C</td></tr>
</table>this one
</div></div>
</body>
</html>'''

i would like to have_an_iterator that_return:
<td>6c_this_one</td>

and then:
<div>
<table>
<tr><td>1A</td><td>2A</td><td>3A</td><td>4A</td><td>5A</td><td>6A</td></tr>
<tr><td>1B</td><td>2B</td><td>