[pcre-dev] named pattern question

Top Page
Delete this message
Author: Ze'ev Atlas
Date:  
To: Philip Hazel, Pcre Exim
Subject: [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