title: php regex issue
body: <p>I'm using a bit of code I found on the internet somewhere to compress my css files and it works great, however there is one regex issue that is causing a bit of trouble.</p>
  
  <pre><code>$css = preg_replace('/([\\w#\\.\\*]+)\\s+([\\w#\\.\\*]+){/', "$1\n$2{", $css);
  </code></pre>
  
  <p>This statement is supposed to separate multiple css rules on a single line into one css rule per line.</p>
  
  <p>For example: </p>
  
  <pre><code>block_1 .block_2 {color:red} .block_3 .block_4 {color:blue}
  </code></pre>
  
  <p>Should become: </p>
  
  <pre><code>.block_1 .block_2 {color:red} 
  .block_3 .block_4 {color:blue}
  </code></pre>
  
  <p>But what it does is something like:</p>
  
  <pre><code>.block_1 
  .block_2 {color:red} .block_3 
  .block_4 {color:blue}
  </code></pre>
  
  <p>It does the same thing with rules such as</p>
  
  <pre><code>.block_1 p {} div.x div {}
  </code></pre>
  
  <p>Can someone take a quick look at that regex line? Regex is NOT my forte :)</p>