Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8075ef887752a937e1cf80df0948bd0137510560
Ticket: 446565ffffffffffffffffffffffffffffffffff
Capturing parens are very slow
User & Date: msofer on 2001-08-07 01:12:51
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    Indeed, I am both wrong and sorry.
    
    The "capturing parens" are very costly in this case;
    replacing them with the "non-capturing" variant produces the
    desired result. The regex becomes then
    
    {<script(?:.(?!</script>))*?(?:doubleclick|flycast|burstnet|spylog)+?.*?</script>}
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"