estoy haciendo esta exprecion para extraer dominios o urls pero me da este error :
Warning: preg_match_all() [function.preg-match-all]: Compilation failed: range out of order in character class at offset 44 in
Código PHP:
$r = preg_match_all("/^(((http|https|ftp):)?(\/\/)?|\/)([\w\.\/\_-%=&@]+)*((?)[\w\.\/\_-%=&@]+)?((#)[\w\.\/\_-%=&@]+)?$/i", $cache, $domains);
foreach(array_unique($domains[0]) as $domain)
{
echo "Dominios : ".$domain." <br />";
}
muchas gracias, un saludo grande .