$line = '<a href="http://www.yahoo.com";>http://www.yahoo.com</a>';
if (eregi("<a[  ]+(.*[  ]+)?href=([\"'])?([^<>\"'])+([\"'])?>[^<>]+<\/a[ 
]*>",$line,$matches)) {
print (htmlspecialchars($matches[0]));
}

it works fine,
however if
$line .= 'X<a href=http:/www.php.net>www.php.net</a>';
is added before eregi,
it doesn't,what's wrong with my code?
--
Regards,



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to