I am trying to decode this HTML input string:
<tbody>
<tr class="row0 first" >
<td class="col0 first" data-colid="0" >
<span>Previous close</span>
</td>
<td class="col1 last" data-colid="1" >
<span>39.64</span>
</td>
</tr>
<tr class="row1" >
<td class="col0 first" data-colid="0" >
<span>Open</span>
</td>
<td class="col1 last" data-colid="1" >
<span>39.50</span>
</td>
</tr>
<tr class="row2" >
<td class="col0 first" data-colid="0" >
I tried this Regular Expression:
\<span\>Previous\sclose\<\/span\>[\w\n\r\<\/\s\>\=\"\-]+\<span\>[0-9\.]+\<\/span\>
and the output I am getting is:
<span>Previous close</span>
</td>
<td class="col1 last" data-colid="1" >
<span>39.64</span>
I am interested only in the value of 39.64. Is there a way to use REGEX to only match the "39.64" without the getting the rest of the HTML?
Thx