Autor: Ze'ev Atlas Datum: To: Philip Hazel, Pcre Exim Betreff: [pcre-dev] named pattern question
On the testinput2 file, there is a pattern/(?<n>a|b|c)\g<n>*/
Trying the same pattern in Perl (5.20 on Windows) generates the error Unterminated \g... pattern in regex; marked by <-- HERE in m/(?<n>a|b|c)\g <-- HERE <n>*/ at perltst.pl line 14.
I am not clear whether the pattern is universally legitimate or is it legitimate only in the context of PCRE2. I (and would) upgrade my Perl, but could you please shed some light
Thank you
Ze'ev Atlas