PHP Code:
$String 'page=4&amp;searchId=2" title="Go to page 4">4</a>, <a href="Results.jsp?page=5&amp;searchId=2" title="Go to page 5">5</a>, <a href="Results.jsp?page=6&amp;searchId=2" title="Go to page 6">6</a>, <a href="Results.jsp?page=7&amp;searchId=2" title="Go to page 7">7</a>, <a href="Results.jsp?page=8&amp;searchId=2" title="Go to page 8">8</a> [<a href="Results.jsp?page=2&amp;searchId=2">Next</a><a href="Results.jsp?page=180&amp;searchId=2">Last</a>]</span>';
preg_match_all('#page=180&amp;searchId=2">(.*?)</a>#'$String$Values);
print_r($Values); 
returns "Last" in the array, as expected.

PHP Code:
$String 'page=4&amp;searchId=2" title="Go to page 4">4</a>, <a href="Results.jsp?page=5&amp;searchId=2" title="Go to page 5">5</a>, <a href="Results.jsp?page=6&amp;searchId=2" title="Go to page 6">6</a>, <a href="Results.jsp?page=7&amp;searchId=2" title="Go to page 7">7</a>, <a href="Results.jsp?page=8&amp;searchId=2" title="Go to page 8">8</a> [<a href="Results.jsp?page=2&amp;searchId=2">Next</a><a href="Results.jsp?page=180&amp;searchId=2">Last</a>]</span>';
preg_match_all('#page=(.*?)&amp;searchId=2">Last</a>#'$String$Values);
print_r($Values); 
doesn't return 180. Anyone know why?