title: Get domain name RegEx
body: <p>What need a template RegEx to get a domain name.</p>
  
  <p>For example, i have:</p>
  
  <pre><code>lifenews.ru
  www.forbes.com
  goo.gl
  ya.ru
  </code></pre>
  
  <p>and get:</p>
  
  <pre><code>lifenews
  forbes
  goo
  ya
  </code></pre>