[pcre-dev] (*COMMIT), (*THEN) and an atomic groups
Català
Dansk
Deutsch
Ελληνικά
English
Español
suomi
Français
Galego
magyar
Italiano
日本語
Nederlands
Polski
Português
Português Brasileiro
Αυτό το μήνυμα είναι μέρος του ακόλουθου νήματος:
το πλήρες δέντρο νημάτων ταξινομημένο κατά ημερομηνία
Philip Hazel στο
2010-07-02 09:24
Συντάκτης:
ND
Ημερομηνία:
2010-06-27 06:47
UTC
Προς:
Pcre-dev
Αντικείμενο:
[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.