Studiati questo codice:

Codice PHP:
<?php 

$content 
'

<input type="image" height="90" width="728" src="/userfiles/image/seo.gif" /></p>'
;

$pattern '#src="(.*?)"#si';

$url null;
if (
preg_match($pattern$content$matches)) {
    
$url $matches[1];
}

print(
$url)

?>