A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1857 ====================================================================== Reported By: dannyniu Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1857 Category: Base Definitions and Headers Type: Error Severity: Objection Priority: normal Status: New Name: DannyNiu/NJF Organization: Individual User Reference: Section: 9.1 Regular Expression Definitions # and others. Page Number: 179-180 and others Line Number: 6366-6368 and others. Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2024-09-14 12:54 UTC Last Modified: 2024-09-25 13:17 UTC ====================================================================== Summary: Several problems with the new "lazy" regex quantifier. ======================================================================
---------------------------------------------------------------------- (0006885) geoffclare (manager) - 2024-09-25 13:17 https://austingroupbugs.net/view.php?id=1857#c6885 ---------------------------------------------------------------------- Re https://austingroupbugs.net/view.php?id=1857#c6884. I am strongly of the opinion that this is a misfeature in python and php. I suspect that most python and php programmers would be surprised to discover they behave that way. If there are two possible matches with different lengths, having the non-greedy RE give the longer of the two, the same as the greedy RE does, violates the principle of least surprise. As regards "macOS is generally slow on adopting conformance to newer standard", that is irrelevant. This new addition in POSIX is intended to be a standardisation of long-standing existing practice. We would need a very good reason to specify behaviour that is different than that existing practice, thus breaking not just the existing implementations[*] but also applications that rely on the existing behaviour. It doesn't matter that they were not "portable applications" when they were written if a forced change to existing implementations is what causes them to break. [*] Yes, "implementations" plural. Known to be at least macOS and DragonFly BSD. Issue History Date Modified Username Field Change ====================================================================== 2024-09-14 12:54 dannyniu New Issue 2024-09-14 12:54 dannyniu Name => DannyNiu/NJF 2024-09-14 12:54 dannyniu Organization => Individual 2024-09-14 12:54 dannyniu Section => 9.1 Regular Expression Definitions # and others. 2024-09-14 12:54 dannyniu Page Number => 179-180 and others 2024-09-14 12:54 dannyniu Line Number => 6366-6368 and others. 2024-09-20 08:05 dannyniu Note Added: 0006879 2024-09-20 08:07 dannyniu Note Edited: 0006879 2024-09-20 08:13 dannyniu Note Edited: 0006879 2024-09-23 08:56 geoffclare Note Added: 0006880 2024-09-24 10:46 geoffclare Note Added: 0006881 2024-09-24 10:46 geoffclare Note Edited: 0006881 2024-09-24 11:54 dannyniu Note Added: 0006882 2024-09-24 12:08 dannyniu Note Edited: 0006882 2024-09-24 12:09 dannyniu Note Edited: 0006882 2024-09-24 12:11 dannyniu Note Edited: 0006882 2024-09-24 12:12 dannyniu Note Edited: 0006882 2024-09-24 14:04 geoffclare Note Added: 0006883 2024-09-25 08:28 dannyniu Note Added: 0006884 2024-09-25 08:30 dannyniu Note Edited: 0006884 2024-09-25 08:33 dannyniu Note Edited: 0006884 2024-09-25 08:42 dannyniu Note Edited: 0006884 2024-09-25 08:43 dannyniu Note Edited: 0006884 2024-09-25 11:36 dannyniu Note Edited: 0006884 2024-09-25 13:17 geoffclare Note Added: 0006885 ======================================================================