title: regular expression which start with "/start/" but does not end with "end1" or "end2"
body: <p>I was trying to formulate a regular expression to be used with "Location" directive of Apache web server configuration inside httpd.conf file.</p>
  
  <pre><code>&lt;Location ~ "/start/.*(?!end1|end2)$"&gt; 
      Order Deny,Allow
      Deny from all
      Allow from foo.com
  &lt;/Location&gt; 
  </code></pre>
  
  <p>However, I got the following error in Apache log file:</p>
  
  <pre><code>Syntax error on line 1179 of c:/apache/apache/conf/httpd.conf:
  Regex could not be compiled
  </code></pre>
  
  <p>I know the error is probably in the "negative lookahead" section: (?!end1|end2), but could not figure out exactly.
  Thanks</p>