Hi,
the following regular expression should match these url's
with and without [url]http://[/url]
and
with and without www.
$theString="http://tewlzbox.net";
if (preg_match("/^(http:\\/\\/)?(www\\.)?tewlzbox\\.(org|com|net)$/",$theString)) {
echo "matched.";
}