vb.net - Regex get only numeric values from string -
i want 116.83 , 81.16 below string. tried \d selects 2 up2 , dn2. how can ignore this.
<td align="right"> 116.83<span class="up2"></span><br>81.16<span class="dn2"></span> </td>
\b[\d.]+\b \b matches boundary between word , non-word characters, doesn't include adjacent characters in match. since letters , numbers both word characters, won't match between p , 2, up2 doesn't match. > non-word character, matches between > , 8, therefore regexp matches 81.16.
Comments
Post a Comment