Hi All,
Was wondering whether you could help me get a regexp to work.
I am tryin to get the URL of an image off a page. The image has his own ID:
<img id="displayex" ... src="...">
I was thinking along these lines, but am stumped on how to exactly do it 😕
if(preg_match('/(displayex)(%[>]%)src=\"()\">/si', $contents, $matches))
{
$retval['img'] = $matches[2];
}
Any regexperts there that can lend me hand?
Cheers!
J.