title: Replace character more than once
body: <p>Here is a fiddle <a href="http://jsfiddle.net/aLr2yx8d/" rel="nofollow">http://jsfiddle.net/aLr2yx8d/</a></p>
  
  <pre><code>$('#inputButton').click(function() {    
  
      var value = $('#input').val(); 
      var re = /\./g;
      var output = $('#output');
  
      var text = output.text().replace(re, value);
      output.html(text); 
  
  });
  </code></pre>
  
  <p>Now I can only update it once. I want to have the possibility to update it more than once. The first time it will replace the dot (.) and the second time it has to replace the first value I gave.</p>