Determining the pattern below has got my stumped.
I have a page of HTML and need to find all occurrences of the following
pattern:
score=999999999 9&
The number shown can be 5-10 characters in length. I would like to extract
only the number, stripping off the "score=" and "&".
I have tried the following without success:
preg_match_all( "|score=(\d{5,1 0})&|is", $html, $out);
The page includes numerous occurrences of the pattern yet the $out array
only contains two items with both values equaling "array".
Any help would be greatly appreciated.
Thanks.
I have a page of HTML and need to find all occurrences of the following
pattern:
score=999999999 9&
The number shown can be 5-10 characters in length. I would like to extract
only the number, stripping off the "score=" and "&".
I have tried the following without success:
preg_match_all( "|score=(\d{5,1 0})&|is", $html, $out);
The page includes numerous occurrences of the pattern yet the $out array
only contains two items with both values equaling "array".
Any help would be greatly appreciated.
Thanks.
Comment