title: RegExp in ActionScript 3: How to exclude a complex prefix?
body: <p>AS3 RegExp engine (and ECMAScript based JavaScript) do not support <strong>complex</strong> "lookbehind" expressions. (lookahead expressions are fully supported.) </p>
  
  <p>For example:</p>
  
  <pre><code> (?&lt;=&lt;body&gt;)(.*?)(?=&lt;\/body&gt;)
  </code></pre>
  
  <p>will work but;</p>
  
  <pre><code>(?&lt;=&lt;body\b[^&gt;]*&gt;)(.*?)(?=&lt;\/body&gt;)
  </code></pre>
  
  <p>will not work in AS3.</p>
  
  <p>What I need is to match a complex prefix but exclude it in the final match.
  In the example above; I'm trying to get the body contents in an HTML text but NOT the opening and closing body tags. And the actual test text looks like this:</p>
  
  <pre><code>&lt;body bgcolor="#EEEEEE"&gt;
  Some content here...
  &lt;/body&gt;
  </code></pre>