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 from this string:
Account Number: 033
Account Information: Some text here
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...
Any help would be great! Thanks
EDIT:
The text is HTML... that may be the problem:
<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>
See Question&Answers more detail:os