With #2 you maybe referring to the functionality in conditionals: http://php.net/manual/en/regexp.reference.conditional.php
...that allows you to check whether a capture group relative to the current position matched. The syntax is a little different but it's the closest thing I can think of to the syntax you show. See also #1 near the top of this page: http://www.asiteaboutnothing.net/regex/regex-conditionals.html I agree some things like (?(DEFINE)...) as well as other control verbs (*SKIP, *FAIL etc) could do with being documented. --- Best Regards Chris Wright (DaveRandom) -----Original Message----- From: Hannes Magnusson [mailto:hannes.magnus...@gmail.com] Sent: 29 May 2013 19:31 To: Karoly Negyesi Cc: PHP Documentation ML Subject: Re: [PHP-DOC] PCRE missing pieces On Mon, May 27, 2013 at 1:39 AM, Karoly Negyesi <kar...@negyesi.net> wrote: > Hi, > > 1. Subpatterns talk about numbered subpatterns but does not explain > where / how to use them. Recursive patterns mention them. Crosslink? I > do not how to add a cross-lnik. Just add a "See also <xref linkend="regexp.reference.recursive" /> somewhere > 2. I couldn't find (?+2) and (?-2) anywhere nor I have a good idea > where to put this. No clue what it is or what its called =) > 3. Most important of all (?(DEFINE)) is missing. Neither this. Lookup whats it called in the pcre docs and create a new section for it? -Hannes