title: Extract hostname from a URL
body: <p>I have to trim the website name upto ".com" or"co.in" in sql</p>
  
  <p>example: lets assume i have  site address as"http://stackoverflow.com/questions/ask?title=trim".
  I need to get the result as "stackoverflow.com".</p>
  
  <p>some scenario it may be like "www.google.co.in" then i need it to be "google.co.in"</p>