If the number is always after Account Number:
(including that space at the end), then just add that to your regex:
preg_match_all('/Account Number: ([d]+)/',$str,$matches);
// The parentheses capture the digits and stores them in $matches[1]
Results:
$matches Array:
(
[0] => Array
(
[0] => Account Number: 033
)
[1] => Array
(
[0] => 033
)
)
Note: If there is HTML present, then that can be included in the regex as well as long as you don't believe the HTML is subject to change. Otherwise, I suggest using an HTML DOM Parser to get to the plain-text version of your string and using a regex from there.
With that said, the following is an example that includes the HTML in the regex and provides the same output as above:
// Notice the delimiter
preg_match_all('@<font face="Arial, Helvetica, sans-serif" color="#000099"><strong><font color="#660000">Account
Number</font></strong><font color="#660000">: ([d]+)@',$str,$matches);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…