Niu Danny wrote, on 26 Feb 2025: > > Are we back online now? Can the terminology of > ''subpattern'' and ''subexpression'' be clarified?
There are exactly two uses of "subpattern" in Issue 8 and the resolution of this bug (1857) eliminates both of them. > Do they mean the parenthesized portions or do they > refer to any arbitrary substring spelled by the regex? The meaning of "subexpression" for BREs is effectively defined in XBD 9.3.6 item 2. There is no equivalent for EREs, I suspect because EREs don't have back-references. The ERE text tends to talk about "an ERE enclosed in parentheses" or "grouping", although there are four places in 9.4.9 that say "expression or subexpression". This inconsistency between BREs and EREs is perhaps something we should address, but it should be done via a separate bug, not by revisiting bug 1857 (which is an approved interpretation specifically about the repetition modifier '?'). > > 2025年2月18日 13:35,Niu Danny via austin-group-l at The Open Group > > <[email protected]> 写道: > > > > Apologies for the mangled URL, Microsoft Outlook insist on safety. > > Sending to the list since the issue tracker is under maintenance. > > > > We aren't seem to be defining *subpattern* and *subexpression*, > > may be we're using them consistently? But it'd be nice if > > these 2 terms defined explicitly. -- Geoff Clare <[email protected]> The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England
