I have adjusted a small script to check backlinks. Yet I keep on getting the error
Warning: preg_match() [function.preg-match]: No ending delimiter \'/\' found in li
The error is very clear really, you didn't include the trailing /
:
preg_match('/<div id="resultStats">About \(.*?)\ /',$v,$s);
I honestly doubt your escape characters are well placed though. Maybe you meant \)
?
Try changing
preg_match('/<div id="resultStats">About \(.*?)\ ',$v,$s);
To
preg_match('/<div id="resultStats">About \(.*?)\ /',$v,$s);
/
is a "delimiter" meaning it tells preg_match where the regex pattern ends.
It does not have a closing /
preg_match('/ pattern /', $subject);
You have a beginning (slash) /
but no closing (slash) /
It looks for the pattern you define in between the 2 slashes.