right so i need to get this working:
PHP
first match should look for the following:
$pattern1 = "/<div rawurl\=\"(.*)\" class/"; // add wildcard here as there will be 10 matches, we are only looking for one
preg_match($pattern1, $file, $out1);
Then run a second check to see if our defined variable exists in the result from the first preg_match $out1
$pattern2 = preg_quote("http://domain.com/extras/?possiblequery");
$pattern2 = "/".$pattern2."/";
if (preg_match($pattern2, $file, $out));
So I am having trouble coding up the regex for theses two preg_match lines... any help welcome!
1 year 19 weeks ago