Re: [PHP] potential preg_replace bug; unsure however

2001-09-03 Thread
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Sat, Sep 01, 2001 at 08:55:15PM +0200 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] potential preg_replace bug; unsure however > I built a Perl-style regex to match function calls in C-like > languages where $name is the f

[PHP] potential preg_replace bug; unsure however

2001-09-01 Thread alvarez
I built a Perl-style regex to match function calls in C-like languages where $name is the functions name. The functions are assumed to accept a single string as parameter. Here it is. /$name\s*\(\s*\"(.*)\"\s*\)\s*;/s The expression is successfully preg_match'ed on a stream of code, but whe