title: SED whitespace removal within a string
body: <p>I'm trying to use sed to replace whitespace within a string. For example, given the line:</p>
  
  <pre><code>var test = 'Some test text here.';
  </code></pre>
  
  <p>I want to get:</p>
  
  <pre><code>var test = 'Sometesttexthere.';
  </code></pre>
  
  <p>I've tried using (<code>\x27</code> matches the <code>'</code>):</p>
  
  <pre><code>sed 's|\x27\([^\x27[:space:]]*\)[[:space:]]|\x27\1|g
  </code></pre>
  
  <p>but that just gives</p>
  
  <pre><code>var test = 'Sometest text here.';
  </code></pre>
  
  <p>Any ideas?</p>