<?
//replace [url]http://[/url] or www. with nothing
function site_sort() {
global $sites;
$sites = str_replace("www.","",$sites);
$sites = str_replace('<a href=\"',"",$sites);
$sites = str_replace('\"',"",$sites);
$sites = explode(" ",$sites);
$sites = array_unique($sites);
sort($sites);
$i = "0";
foreach ($sites as $site) {
if ($site != "") {
if (stristr($site,".")) {
echo $site;
echo "<br>";
$i++;
} else {
echo $errstr;
}
}
}
echo "<BR><BR><B>------------------------------------------Total Count: ".$i;
}
?>
its still not stripping and sorting it enough....anyone know anything about regular expressions?