Re: Substitution, subgroups and numbers
"Daniel F. Savarese" <[email protected]> Wed, 18 Dec 2002 13:27:12 -0500
| Newsgroups | gmane.comp.jakarta.oro.user |
|---|---|
| Message-ID | <[email protected]> |
In message <[email protected]>, "patrick mezard" writes: >I am no perl-expert so maybe this kind of groupid escaping is part of >perl 5.6 regexp. In this case, is there an other way to disambiguate the >right part of the substitution ? The use of braces is part of Perl variable expansion. It does not directly have anything to do with regular expressions, which is why it is not implemented. The approach taken in jakarta-oro's Perl5 regular expression implementation has generally been to only include those features that strictly have to do with Perl regular expressions and not the Perl scripting/shell language. This becomes complicated by the fact that certain features having to do with saved group interpolations and special variables intersect with regular expression functionality despite not being part of the regular expression grammar. If there's enough of a clamor for a feature that is part of the Perl language and not the regular expression grammar, it tends to get added. Afterall, the point of the software is to meet developer requirements. So, is there a clamor for ${foo} interpolated group variable expansion? daniel