Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6c4f1a1898ab14544a4164bbe0c907640e155a819cefb59d5f4b60c05bb5b904
Ticket: 1902890fffffffffffffffffffffffffffffffff
compiled regexp behaves differently
User & Date: serhiy.storchaka on 2026-10-11 07:45:23
Changes

  1. icomment:
    With <tt>--</tt> the RE cannot be a switch, so the compiled code needs no runtime check: <tt>regexp -- $re $string</tt> is the safest and fastest way to match a variable RE. Much code in Tcl's library is already written this way.
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"