Python Regex Question

joemystery123 at gmail.com joemystery123 at gmail.com
Thu Sep 20 15:33:31 EDT 2007


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?




More information about the Python-list mailing list