ID: 10516
Updated by: andrei
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: PCRE related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

The results you get are consistent with (?R) description in PCRE docs. If you have a 
problem with that, contact the PCRE library author, please.

Previous Comments:
---------------------------------------------------------------------------

[2001-04-26 17:05:56] [EMAIL PROTECTED]
$s = "a(b(c)d)e(f)g";
$p = "/( ( ( (?>[^()]+) | (?R) )* ) )/xU";
if (preg_match_all($p, $s, $x)) {
   echo "match";
   // see what's in $x
} else {
   echo "no match";
}


This example pattern is taken straigh out of the PCRE docs, but I don't get the 
desired result, whatever I try. I haven't been able to succesfully use the 
experimental (?R) so I was wondering if anyone ever has.

In perl, recursive patterns seem to work fine by the way.


Regards,
Martijn

---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10516&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to