Hi. I need to get the domain name and the .com/.net... etc. For example: foo.com > foo.com www.foo.com > foo.com somesubdomain.foo.com > foo.com one.two.foo.com > foo.com I need to get the foo.com part in all cases. What regexp/function could i use? Thanks Andres -- Slds, Andrés Santos Kunze, IIG (593) 9 7026627 ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> PHP Data object relational mapping generator http://www.metastorage.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/