I'm trying to do a regex match in perl but I'm not sure how to get it. Basically, I'd like to extract the numbers from the following string (which may or may not have newlines within it)
<strong>
word
</strong>
</td><td align="right">
<strong>
65
</strong>
</td><td align="right">
<strong>
5,000
</strong>
</td><td align="right">
<strong>
-
</strong>
<tr><td colspan="2">word</td><td align="right">65 </td><td align="right">5,000 </td><td align="right">- </td></tr>
So for the above two strings, I'd like to match: 65; 5,000; and - (which means 0).