title: How to remove URL from a string completely in Javascript?
body: <p>I have a string that may contain several url links (http or https). I need a script that would remove all those URLs from the string completely and return that same string without them.</p>
  
  <p>I tried so far:</p>
  
  <pre><code> var url = "and I said http://fdsadfs.com/dasfsdadf/afsdasf.html";
   var protomatch = /(https?|ftp):\/\//; // NB: not '.*'
   var b = url.replace(protomatch, '');
   console.log(b);
  </code></pre>
  
  <p>but this only removes the http part and keeps the link. </p>
  
  <p>How to write the right regex that it would remove everything that follows http and also detect several links in the string?</p>
  
  <p>Thank you so much! </p>