Somewhere in a large html file :
<td headers="fee" style="cursor:pointer;" onclick="toggle('detailinfo088180');">
$675.00
</td>
blabla<br><em>$650</em>">blabla/a>
</td>
</tr>
I need to have only the ‘675.00’ number after a grep command. I tried some regex like $[0..9].* but it doesn’t work.
Thanks,
You want to use a hyphen
-not..to signify a range. You also need to escape the$literal because it otherwise means end-of-line.This should see it:
grep "\$[0-9]+"