Hi,
AS3 RegExp engine (and ECMAScript based JavaScript) do not support complex "lookbehind" expressions. (lookahead expressions are fully supported.)
For example:
(?<=<body>)(.*?)(?=<\/body>)
will work but;
(?<=<body\b[^>]*>)(.*?)(?=<\/body>)
will not work in AS3.
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:
<body bgcolor="#EEEEEE">
Some content here...
</body>
Any help is appreciated..