Overview
| Artifact ID: | d3c7262c60d98e97a6edba4d5f5d3ea346b64bf1c6f8a851824270a691320ff0 |
|---|---|
| Ticket: | 471101ffffffffffffffffffffffffffffffffff
RE \A and ^ don't replace the same |
| User & Date: | jan.nijtmans on 2026-10-13 12:19:50 |
Changes
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461327.0137817594"
- closer changed to: "jan.nijtmans"
- comment changed to:
When no options are specified, \A and ^ should be the same, but they don't seem to behave the same: (hobbs) 79 % regsub -all {\Aa} {aabbcc} {b} r 2 (hobbs) 80 % set r bbbbcc (hobbs) 81 % regsub -all {^a} {aabbcc} {b} r 1 (hobbs) 82 % set r babbcc whereas \Z seems OK: (hobbs) 83 % regsub -all {(\Aa|c\Z)} {aabbcc} {b} r 3 (hobbs) 84 % set r bbbbcb (hobbs) 85 % regsub -all {(^a|c$)} {aabbcc} {b} r 2 (hobbs) 86 % set r babbcb - foundin changed to: "8.6, 9.0.5, 9.1.0"
- icomment:
Fixed in [d2a1819076|trunk], core-9-0-branch and core-8-6-branch Many thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"