Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2ccfa0e829254b7b743990bee7338a73f340cd7995a82f0da7331c1829bedee3
Ticket: a6029ee50552e4e89fd57a4a18c83379b64da46c
regexp hangs with backreferences when a possible empty match fails
User & Date: serhiy.storchaka on 2026-10-17 07:16:33
Changes

  1. icomment:
    Merged into main in [ac36095ed4], not yet into 9.0 and 8.6. Besides the hang, it also changes which groups are set when an iteration matches an empty string: the engine now prefers one empty iteration to zero (as PostgreSQL does), so <nowiki>[regexp -indices -inline {((a?)*|(b?)*)+} aaa]</nowiki> gives <nowiki>{0 2} {3 2} {3 2} {-1 -1}</nowiki> on main, as in 8.4 to 8.6.4, and <nowiki>{0 2} {3 2} {-1 -1} {-1 -1}</nowiki> in 8.6.5 to 9.0 (since [c8dfe06653]).
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"