title: How to get the subdomain name without domain?
body: <p>I want to extract just the subdomain part from the url. How to solve this problem.
  Eg. if the url is &quot;http://www.example.com&quot; how to get &quot;www&quot;?</p>