A NOTE has been added to this issue. ====================================================================== https://www.austingroupbugs.net/view.php?id=1919 ====================================================================== Reported By: dwheeler Assigned To: ajosey ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1919 Category: Base Definitions and Headers Tags: tc1-2024 Type: Clarification Requested Severity: Editorial Priority: normal Status: Resolved Name: David A. Wheeler Organization: User Reference: Section: 9. Regular Expressions Page Number: 1 Line Number: 1 Interp Status: --- Final Accepted Text: see https://www.austingroupbugs.net/view.php?id=1919#c7154 Resolution: Accepted As Marked Fixed in Version: ====================================================================== Date Submitted: 2025-04-19 21:01 UTC Last Modified: 2025-05-05 17:45 UTC ====================================================================== Summary: Add \A and \z to regular expressions (at least EREs) ======================================================================
---------------------------------------------------------------------- (0007179) dwheeler (reporter) - 2025-05-05 17:45 https://www.austingroupbugs.net/view.php?id=1919#c7179 ---------------------------------------------------------------------- A lot of tools process data a line at a time. In those cases I think \A and \z should mean "beginning and ending of the current line being processed", since that's the data being processed. grep normally reads a line at time, so I'd expect \A to mean the same as ^ and \z to mean the same as $ (presuming there's no multi-line mode enabled), since within its processing the "beginning of string' and "end of string" would be within the read line. More generally, I would want this to be *easy* to implement, or there's a risk it won't happen everywhere. In the case of ed and sed, again, commands like "s" work a line at a time, so \A should mean ^ and \z should mean $. They can already notate "first line" and "last line" anyway, so there's no strong need to do things "the hard way". Issue History Date Modified Username Field Change ====================================================================== 2025-04-19 21:01 dwheeler New Issue 2025-04-19 21:01 dwheeler Status New => Under Review 2025-04-19 21:01 dwheeler Assigned To => ajosey 2025-04-24 16:20 eblake Note Added: 0007153 2025-04-24 16:26 nick Note Added: 0007154 2025-04-24 16:28 nick Status Under Review => Resolved 2025-04-24 16:28 nick Resolution Open => Accepted As Marked 2025-04-24 16:28 nick Category Front Matter => Base Definitions and Headers 2025-04-24 16:28 nick Interp Status => --- 2025-04-24 16:28 nick Final Accepted Text => see https://www.austingroupbugs.net/view.php?id=1919#c7154 2025-04-24 16:28 nick Tag Attached: tc1-2024 2025-04-24 16:29 geoffclare Project 1003.1(2008)/Issue 7 => 1003.1(2024)/Issue8 2025-04-28 18:55 dwheeler Note Added: 0007157 2025-04-28 21:16 eblake Note Added: 0007159 2025-04-29 12:55 dwheeler Note Added: 0007161 2025-04-29 14:05 dwheeler Note Added: 0007162 2025-05-02 15:42 msbrown Note Added: 0007170 2025-05-05 14:32 dwheeler Note Added: 0007174 2025-05-05 14:48 lanodan Note Added: 0007175 2025-05-05 15:05 lanodan Note Edited: 0007175 2025-05-05 17:45 dwheeler Note Added: 0007179 ======================================================================