AS3 RegExp engine (and ECMAScript-based JavaScript) do not support complex "lookbehind" expressions . (lookahead expressions are fully supported.)
For instance:
(?<=<body>)(.*?)(?=<\/body>)
will work but
(?<=<body\b[^>]*>)(.*?)(?=<\/body>)
will not work in AS3.
I need to match a complex prefix, but exclude it in the final match. In the above example; I am trying to get body contents in HTML text, but DO NOT open and close body tags. And the actual test text is as follows:
<body bgcolor="#EEEEEE">
Some content here...
</body>
radgar
source
share