Re: PCRE syntax update

From: Date: Fri, 18 Mar 2005 20:56:31 +0000
Subject: Re: PCRE syntax update
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969367020@lists.php.net to get a copy of this message
On Thu, 17 Mar 2005 20:27:11 -0000, Nuno Lopes <nlopess@php.net> wrote: Hi, PHP is bundled with PCRE 4.3 for a long time ago (http://www.zend.com/lists/php-dev/200306/msg00844.html), but the PCRE syntax manual section has not been updated to reflect this change up to now.
Thats not totally true, as I've already documented some changes.
can you clear that what parts you updated exactly? I compared the PHP manual PCRE Pattern section (http://hu.php.net/manual/en/reference.pcre.pattern.syntax.php) and the PCRE manual (http://www.pcre.org/pcre.txt) and I've found the following sections are missing or differs much: - locale support - unicode support - supported POSIX character class list - named capturing subpattern (?P<url> ...) - recursive subpattern (almost beat Perl ;) - possesive quantifiers (?+, *+, ++)
I think none of those subjects are documented now (there is some unicode docs tough). I've searched in the CVS, and it seems I've only documented the behaviour change of (?xx) at top level (http://cvs.php.net/diff.php/phpdoc/en/reference/pcre/pattern.syntax.xml?r1=1.5&r2=1.6&ty=u).
Yes, we need to update it. And as PCRE 5 will probably be bundled in php 5.1, we will have even more work.
Wow, that sounds great! Is there any publicly available docs about the new features?
http://www.pcre.org/pcre.txt is great
So, if you can write a patch to the docs, I'll be glad to review and commit it.
Thanks, I've already CVS account to phpdoc, but if you want to take a look at it before committing I'll send you the new .xml files instead.
I didn't know that, sorry. I'll take a look after you commit your changes (BTW, don't touch in the preg_replace*() pages, as I'm working on them). Nuno

« previous php.doc (#969367020) next »