[PHP] Getting the domain from an url?

2001-05-12 Thread John Vanderbeck
Hey all, I am quite horrible when it comes to regexps, but I have a string that contains a complete url, like: http://www.domain.com/this/is/it.html And I need to strip everything but the domain so that I am left with: www.domain.com Can anyone help me out? - John Vanderbeck - Admin,

Re: [PHP] Getting the domain from an url?

2001-05-12 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (John Vanderbeck) wrote: I am quite horrible when it comes to regexps, but I have a string that contains a complete url, like: http://www.domain.com/this/is/it.html And I need to strip everything but the domain so that I am left with: