title: preg_replace out CSS comments?
body: <p>I'm writing a quick preg_replace to strip comments from CSS. CSS comments usually have this syntax:</p>
  
  <pre><code>/* Development Classes*/
  /* Un-comment me for easy testing
    (will make it simpler to see errors) */
  </code></pre>
  
  <p>So I'm trying to kill everything between /* and */, like so:</p>
  
  <pre><code>$pattern = "#/\*[^(\*/)]*\*/#";
  $replace = "";
  $v = preg_replace($pattern, $replace, $v);
  </code></pre>
  
  <p>No dice! It seems to be choking on the forward slashes, because I can get it to remove the text of comments if I take the /s out of the pattern. I tried some simpler patterns to see if I could just lose the slashes, but they return the original string unchanged:</p>
  
  <pre><code>$pattern = "#/#";
  $pattern = "/\//";
  </code></pre>
  
  <p>Any ideas on why I can't seem to match those slashes? Thanks!</p>