Overview
| Artifact ID: | 6c4f1a1898ab14544a4164bbe0c907640e155a819cefb59d5f4b60c05bb5b904 |
|---|---|
| Ticket: | 1902890fffffffffffffffffffffffffffffffff
compiled regexp behaves differently |
| User & Date: | serhiy.storchaka on 2026-10-11 07:45:23 |
Changes
- 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.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"