title: Parsing result of URL.getHost()
body: <p>Need help parsing...</p>
  
  <p>In my code, I have a method that returns url.getHost();. But the results of that can be blarg.com, or sometimes dates.blarg.com. I want to return blarg.com for either situation (or for xxx.yyy.ggg.blarg.com).</p>
  
  <p>I can I accomplish this?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: getHost() is from java's built in class java.net.URL.</p>