title: Regex to remove a whitespace from href link
body: <p>Can some one help me to create a regular expression in Javascript to remove a whitespace from href link and replace whitespace to hyphen to in my content?</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;a class="card" href=http://www.eee.com/sffsd/sdfs/Aks's  Reb outsider/4234234234324&gt;
  </code></pre>
  
  <p>it should convert it into</p>
  
  <pre><code>&lt;a class="card" href=http://www.eee.com/sffsd/sdfs/Aks's-Reb-outsider/4234234234324&gt;
  </code></pre>