title: Java Regex that only replaces multiple whitepaces with Non-Breaking Spaces
body: <p>I am looking for a Java regex way of replacing multiple spaces with non-breaking spaces.  Two or more whitespaces should be replaced with the same number of non-breaking spaces, but single whitespaces should NOT be replaced.  This needs to work for any number of whitespaces.  And the first characters could be 1 or more whitespaces.</p>
  
  <p>So if my String starts off like this:</p>
  
  <pre><code>TESTING THIS  OUT   WITH    DIFFERENT     CASES
  </code></pre>
  
  <p>I need the new String to look like this: </p>
  
  <pre><code>TESTING THIS&amp;nbsp;&amp;nbsp;OUT&amp;nbsp;&amp;nbsp;&amp;nbsp;WITH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DIFFERENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CASES
  </code></pre>