title: preg_match with php Compilation failed
body: <p>I try to match this expression : </p>
  
  <blockquote>
    <p>* ^X-Spam-Flag: YES</p>
  </blockquote>
  
  <p>I use this code : </p>
  
  <pre><code>if(preg_match('\'* ^X-Spam-Flag: YES\'', $value))
  </code></pre>
  
  <p>But i have this error : </p>
  
  <blockquote>
    <p>PHP Warning:  preg_match(): Compilation failed: nothing to repeat at
    offset 0</p>
  </blockquote>
  
  <p>Problem with regex and * and ^ but can i correct that ?</p>