title: Javascript slice string by symbols
body: <p>How can I get from this html code</p>
  
  <pre><code>&lt;a href="www.realy-long-link.com"&gt;Link&lt;a&gt;
  </code></pre>
  
  <p>Href value looking like this - Realy Long Link and append it into body.</p>
  
  <p>Here is what I done now.</p>
  
  <pre><code>$("a").hide();
  $("body").append($("a").attr("href"));
  </code></pre>
  
  <p>Goal is:</p>
  
  <ul>
  <li>Remove <em>www.</em> at the start and <em>.com</em> at the end. </li>
  <li>Symbol - replace with space. </li>
  <li>Upercase each first character</li>
  </ul>
  
  <p>You  can edit my codepen <a href="http://codepen.io/anon/pen/YWzJXM?editors=1010" rel="nofollow">http://codepen.io/anon/pen/YWzJXM?editors=1010</a></p>