I'm using PHP to parse an e-mail and want to get the number after a specific string.
For example, I would want to get the number 033 from a string that looks like:
Account Number: 033
Account Information: Some text here
The content is actually HTML, so the input string is more accurately presented as:
<font face="Arial, Helvetica, sans-serif" color="#000099"><strong><font color="#660000">Account Number</font></strong><font color="#660000">: 033<br><strong>Account Name</strong>: More text here<br>
There is always the word Account Number:
and then the number and then a line break. I have:
preg_match_all('!\d+!', $str, $matches);
But that just gets all the numbers.