Forum Moderators: coopster
Results 1-20 of 474 Matching Jobs
I want to extract the number appearing between "of" and "matching" using preg_match. can anyone give me some pointers. I can call the page fine but can't extract the number string.
code below
>>>>>>>>>>>>>>>>>>
<?php
$ch = curl_init ("http://www.jobserve.com/IT/jobserve/searchresults.asp?jobType=C&d=7&page=1&q=java+uk");
//$fp = fopen ("java.txt", "w");
//curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);
$output = curl_exec ($ch);
curl_close ($ch);
//fclose ($fp);
//
preg_match ("/(Results)?(Matching)/", $output, $answer);
$jumps = $answer;
// strip it to the last few digits
preg_match("/(of)?+/", $jumps, $hosts);
echo $hosts;
?>