title: Regex htaccess not working
body: <p>I want to check inside my htaccess if the user does not have a cookie named XXX with the value YYY. I am using this line:</p>
  
  <pre><code>RewriteCond %{HTTP_COOKIE} !(^|;)?XXX=YYY(;|$)
  </code></pre>
  
  <p>It works fine. I just dont understand why do I need to use the "?" symbol? Is there any reason? And why the code below does not work (it shows a 500 error message in my server):</p>
  
  <pre><code>RewriteCond %{HTTP_COOKIE} !(^|; )XXX=YYY(;|$)
  </code></pre>
  
  <p>Thanks.</p>