title: Regex Match a character which is not followed by another specific character
body: <p>I'm writing a CodeMirror extension for Brackets. To defineSimpleCodeMode I need to do some pattern matching and I'm trying to figure out how to achieve $subject.</p>
  
  <p>e.g.</p>
  
  <p>Match <code>&lt;</code> of all the html tags</p>
  
  <pre><code>&lt;body&gt;
  </code></pre>
  
  <p>And ignore html tags which are followed by <code>&lt;%</code></p>
  
  <pre><code>&lt;% if %&gt; 
  </code></pre>
  
  <p><strong>Note: I only want to get the starting <code>&lt;</code> of it</strong></p>
  
  <p>If some can help me out it would be a great help. Please do let me know if you need anymore details.</p>
  
  <p>Thanks!</p>