Overview
| Artifact ID: | d5e8741c46552ca60c4ab34a366f1d700d6fed4ed432c09b0ef69a0d97aa6a18 |
|---|---|
| Ticket: | fbc56b259e989230e54a4053feeecf7aa765f61d
Add support for \z in regex as end-of-string anchor |
| User & Date: | serhiy.storchaka on 2026-09-20 11:23:12 |
Changes
- icomment:
Status: Python 3.14 added <tt>\z</tt> as a synonym for <tt>\Z</tt> ([https://github.com/python/cpython/issues/133306|python/cpython#133306]) and its standard library now uses <tt>\z</tt>; the Austin Group accepted <tt>\A</tt> and <tt>\z</tt> for POSIX EREs. Tcl's <tt>\Z</tt> already has the <tt>\z</tt> semantics (it never matches before a trailing newline), so the synonym is exact. The branch [31c03110d4] merges cleanly onto the current main and passes the regexp tests. Two remarks before merging: the tests should add <tt>\z</tt> cases rather than replace the <tt>\Z</tt> ones (which lose coverage), and re_syntax.n should list <tt>\z</tt> among the constraint escapes (the <tt>.IP</tt> entry from the original patch), not only in the MATCHING section. Can this go into 9.1?
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"