title: php -> preg_replace -> remove space ONLY between quotes
body: <p>I'm trying to remove space ONLY between quotes like:</p>
  
  <pre><code>$text = 'good with spaces "here all spaces should be removed" and here also good';
  </code></pre>
  
  <p>can someone help with a working piece of code ? I already tried:</p>
  
  <pre><code>$regex = '/(\".+?\")|\s/';
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$regex = '/"(?!.?\s+.?)/';
  </code></pre>
  
  <p>without success, and I found a sample that works in the wrong direction :-(
  <a href="https://stackoverflow.com/questions/3824964/removing-whitespace-characters-except-inside-quotation-marks-in-php">Removing whitespace-characters, except inside quotation marks in PHP?</a> but I can't change it.</p>
  
  <p>thx Newi</p>