Heres my situation, I'm trying to scan through one big array that is the HTML contents from a website. I'm trying to match up various lines with a regex and have those variables go into an array. I'm not sure whether I should use ereg or preg, but at present I'm trying to use the latter, because ereg timed out.
preg_match('JobSearch_JobId=(.*?)&JobSearchType=JobSearch" id="bodylink10"><b>(.*?)<\/b><\/a>', $result, $matches);
That is the piece of code I'm using, but I get "Warning: Delimiter must not be alphanumeric or backslash in /home/wwwapply/public_html/test/locations/nevada/test.php on line 21" when trying to run it.
Also, I'm not sure if (.*?) should be what I try to use whenever I want to pull ANYTHING between those two points.
At any rate, I need some help.
Thanks in advance