title: Ruby regex how to replace each item after a lookback?
body: <p>I'm struggling a bit with replacing some spaces with HTML nbsp; characters.
  I'm trying to replace each space with a nbsp; character (not replace all of them with one nbsp;).</p>
  
  <p>Here's what I'm trying at the moment:</p>
  
  <pre><code> "My String:         ".gsub(/(?&lt;=:).*\s/, '&amp;nbsp;')
   =&gt;"My String:&amp;nbsp;" 
  </code></pre>
  
  <p>but this is about as close that I can get (I can kinda see why it's not working, but I'm unable to take it to that next step - if there is one?)... </p>
  
  <p>Any Regex gods out there that can help?</p>