[pcre-dev] named pattern question

Page principale
Supprimer ce message
Auteur: Ze'ev Atlas
Date:  
À: Philip Hazel, Pcre Exim
Sujet: [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