PHP kôd:
$html = '<html>
<head>
<MetA hTTp-eQuIv="REFreSH" CoNtEnT="2; url=http://www.DevProTalk.com" />
<meta name="keywords" content="dpt" />
<meta name="description" content="dpt" />
</head>
<body>
neki sadržaj
</body>
</html>';
libxml_use_internal_errors(true);
$dom = new DOMDocument();
$dom->loadHTML($html);
$xpath = new DOMXPath($dom);
$e = $xpath->query("//meta[translate(@http-equiv, 'REFSH', 'refsh') = 'refresh']/@content");
$content = $e->item(0)->textContent;
$content = explode('=', $content);
$url = trim($content[1]);
echo $url;