Python Regex Question

Tobiah toby at tobiah.org
Thu Sep 20 16:12:08 EDT 2007


joemystery123 at gmail.com wrote:
> I need to extract the number on each <td tags from a html file.
> 
> i.e 49.950 from the following:
> 
> <td align=right width=80><font size=2 face="New Times
> Roman,Times,Serif"> 49.950 </font></td>
> 
> The actual number between:  49.950  can be any number of
> digits before decimal and after decimal.
> 
> <td align=right width=80><font size=2 face="New Times
> Roman,Times,Serif"> ######.#### </font></td>
> 
> How can I just extract the real/integer number using regex?
> 


'[0-9]*\.[0-9]*'

-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list