title: I need www to be linked
body: <pre><code>function urllinks(str){
      return str.replace(/\b((http|https):\/\/\S+)/g,'&lt;a href="$1" target="_blank"&gt;$1&lt;/a&gt;');
  }
  </code></pre>
  
  <p>This code is replacing only "http" and "https" texts... but it doesn't replace texts that begins with "www"...</p>