title: Removing substituing space with a preg_replace in PHP?
body: <pre><code>&lt;a param1="false" class="param2" id="id#12" href="#1"&gt;toto&lt;/a&gt;
  </code></pre>
  
  <p>I have made a <strong>preg_replace</strong> in <strong>PHP</strong> to remove certain params in a html text:</p>
  
  <pre><code>$re = "/(param1=\"false\"|class=\"param2\"|id=\"id#([^\"]+)\")/";
  
  $text = preg_replace($re, " ", $data-&gt;text-&gt;value); 
  </code></pre>
  
  <p>I obtain this <strong>html</strong> link:</p>
  
  <p><code>&lt;a       href="#1"&gt;toto&lt;/a&gt;</code></p>
  
  <p>I would like to leave only one space beetween the <strong> and the href</strong>, is it possible to do that directly in the regex ?</p>