[pcre-dev] [Bug 1679] Ability to explicitly specify what to …

Αρχική Σελίδα
Delete this message
Συντάκτης: admin
Ημερομηνία:  
Προς: pcre-dev
Αντικείμενο: [pcre-dev] [Bug 1679] Ability to explicitly specify what to capture (feature request)
https://bugs.exim.org/show_bug.cgi?id=1679

--- Comment #17 from henrik.hank@??? ---
Can you tell me whether you view this as nonsense:
> (?x)
> (?:
>     # Find:
>     a
>     (?<whitespaces>\s+)
>     b
> )
> (*MARK:
>     # Replace with:
>     1
>     \g{whitespaces}
>     2
> )


Of course, there's no second match of the same text in question. So it might
have to be viewed as an inconsistent syntax. On the other hand, I've found this
description for "\g{name}":
> Substituted with the text matched by the named group "name".

If this is the official point of view, it might be okay.

Could it even be implemented?

--
You are receiving this mail because:
You are on the CC list for the bug.