Overview
| Artifact ID: | 7a31ab2043e8792f1a0c0642d9c0f20e3ccfd93e |
|---|---|
| Ticket: | 446565ffffffffffffffffffffffffffffffffff
Capturing parens are very slow |
| User & Date: | msofer on 2001-08-01 05:42:46 |
Changes
- icomment:
Logged In: YES user_id=148712 The regular expression {<script(.(?!</script>))*?(doubleclick|flycast|burstnet|spylog)+?.*?</script>} is invalid: it contains a constraint (the lookahead) followed by a quantifier, which is expressly forbidden in the man page for re_syntax. I think the author actually wanted something like {<script (?=.*</script>).*?(doubleclick|flycast|burstnet|spylog).*?</script>} which runs OK (albeit slowly; there is probably a better way to express this). OTOH, the regexp engine should complain about the bad syntax and return an error, instead of getting into an infinite loop. - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"