<br><br><div><span class="gmail_quote">On 3 Mar 2006 00:20:21 -0800, <b class="gmail_sendername">P Boy</b> <<a href="mailto:prettyboy988-google@yahoo.com">prettyboy988-google@yahoo.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This seems like a web page parsing question. Another approach can be as<br>follows if you know the limiting token strings:<br><br>a.split(' <TD WIDTH=175><FONT<br>SIZE=2>')[1].split('</FONT></TD>\r\n')[0]
</blockquote><div><br>
<br>
As others have mentioned , you really need a an HTML parser. But the following would work better than strip()<br>
<br>
>>> a = ' <TD WIDTH=175><FONT SIZE=2>Hughes. John</FONT></TD>\r\n'<br>
>>> a.replace(' <TD WIDTH=175><FONT
SIZE=2>', '' ) # '' = 2 single quotes not 1 double quote<br>
'Hughes. John</FONT></TD>\r\n'<br>
<br>
HTH :)<br>
</div><br></div><br><br clear="all"><br>-- <br><br>Tim Williams