Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4a617ea2dc0c35b96d12c23d2e4387d4b562498a3588e011c352813557fcf919
Ticket: b73f1296966202b2beeb14fec5534dec6a408012
regexp -all misses an empty match at the end of the string
User & Date: serhiy.storchaka on 2026-10-11 08:21:44
Changes

  1. icomment:
    Proposed fix in branch [/timeline?r=regexp-all-end-of-string|regexp-all-end-of-string]: the <tt>-all</tt> loop also tries at the end of the string, as <tt>regsub -all</tt> does. The knownBug marks are removed from regexp-23.5, 23.7 and 23.9, and the tests that expected the old results are updated. Together with the fix for [471101ffff] (branch regexp-all-search-start), zero-width REs like <tt>\y</tt>, <tt>\m</tt> or <tt>$</tt> then give the same matches with <tt>-all</tt> as in other RE engines.
    
  2. login: "serhiy.storchaka"
  3. mimetype: "text/x-fossil-wiki"