[pcre-dev] ?(DEFINE) assertion problem

Top Page
Delete this message
Author: ND
Date:  
To: Pcre-dev
Subject: [pcre-dev] ?(DEFINE) assertion problem
Hi, Philip!

Pattern:
(?&word)(?&element)(?(DEFINE)(?<element><[^m][^>]>[^<])(?<word>\w*+))
Compilation error:
reference to non-existent subpattern at 8 position

Substitute 'm' with '\d' in pattern string :
(?&word)(?&element)(?(DEFINE)(?<element><[^\d][^>]>[^<])(?<word>\w*+))
Compilation:
OK

What's wrong with the first example?

Regards, Michael