Probaj...
http://codepad.org/0zlzTmUH
PHP kôd:
<?php
$html = '<head>
<meta name="description" content="Free Web tutorials" />
<meta name="keywords" content="HTML,CSS,XML,JavaScript" />
<meta name="author" content="Hege Refsnes" />
<meta http-equiv="refresh" content="0; url=http://example.com/">
</head>';
$html = strtolower($html);
$dom = new DOMDocument();
$dom->loadHTML($html);
$xpath = new DOMXPath($dom);
$e = $xpath->query("//meta[@http-equiv='refresh']/@content");
$content = $e->item(0)->textContent;
$content = explode('=', $content);
$url = trim($content[1]);
echo $url;
?>