[pcre-dev] (*COMMIT), (*THEN) and an atomic groups

Startseite
Nachricht löschen
Autor: ND
Datum:  
To: Pcre-dev
Betreff: [pcre-dev] (*COMMIT), (*THEN) and an atomic groups
Hi, Philip!


PCRE 8.02

Subject: yes
Pattern: (?>(*COMMIT)(?>yes|no)(*THEN)(*F))?
Match: <empty string>

If any of two atomic groups became non-atomic, for example
Pattern: (?>(*COMMIT)(?:yes|no)(*THEN)(*F))?
then there is no match
Match: RegEx error - PCRE_ERROR_NOMATCH

Why?


Regards.