L
lrlebron
I am trying to parse an html page that has strings that looks like this
<tr class="bg2" height="17" valign="middle" align="right"><td
align="left"></td><td>4</td><td>47</td><td>1</td><td>19</td></tr> to
get the numbers inside the table cells.
I would to end up with a simple string that looks like this (for this
row)
4 47 1 19
The number of table cells in a row that have numbers may vary for
different rows.
I'm new to Ruby so bear with me. I'm also learning to use hpricot and
have been able get the table rows using it
thanks,
Luis
<tr class="bg2" height="17" valign="middle" align="right"><td
align="left"></td><td>4</td><td>47</td><td>1</td><td>19</td></tr> to
get the numbers inside the table cells.
I would to end up with a simple string that looks like this (for this
row)
4 47 1 19
The number of table cells in a row that have numbers may vary for
different rows.
I'm new to Ruby so bear with me. I'm also learning to use hpricot and
have been able get the table rows using it
thanks,
Luis