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-04-29 14:05 UTC ====================================================================== Summary: Add \A and \z to regular expressions (at least EREs) ======================================================================
---------------------------------------------------------------------- (0007162) dwheeler (reporter) - 2025-04-29 14:05 https://www.austingroupbugs.net/view.php?id=1919#c7162 ---------------------------------------------------------------------- Just to be clear: the set of languages and platforms that use \z (and NOT \Z) as "end of string" are: Java, .NET/C#, Perl, PCRE, PHP (using PCRE), Ruby, RE2 which is widely used by Go and Rust crate regex which is widely used by Rust. This is why "end of string" needs to be \z; that's what almost everyone else does. If POSIX adds \z to mean "end of string", we are *much* closer to having a single term that means "end of string" everywhere. The term \Z cannot *ever* be a common term for end-of-string across platforms, because most platforms already use \Z for something else ("end of string optionally preceded by a newline"). The term "$" can't mean end-of-string across platforms, because many platforms *also* don't treat it that way. The term \z *CAN* be a common term for end-of-string across platforms; it's already used that way in most platforms, and it doesn't conflict with another meaning on the rest. 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 ======================================================================