what does the $ in $domain = ereg_replace("..*$", "", $d); mean? appreciate your replies! :p
I think it replaces all characters between the first "." and the end of the string with ""
Christian
This talks about javascript regexes, but most perl compatible are similar:
http://www.devguru.com/Technologies/ecmascript/quickref/regexp_special_characters.html
very good link!
thank you for your replies and help! Really appreciate it.