title: Regex in mod_rewrite to match URLs NOT ending with this OR that
body: <p>What is the regex for this?</p>
  
  <p>Match if string</p>
  
  <blockquote>
    <ul>
    <li>NOT ( ends in <code>.php</code> OR ends in <code>.html</code> OR contains <code>/</code> )</li>
    </ul>
  </blockquote>
  
  <p>Thank you!</p>
  
  <p>Edit: I need the <code>NOT</code> part because the expression is to be used on an Apache mod rewrite, since I can't change the logic of <code>mod_rewrite</code> to avoid the <code>NOT</code>.</p>
  
  <p>Edit: My initial effort was <code>([^/]+)(\.html)$(^\.php)$</code> - which is monstrously wrong</p>