Re: Regex guru needed
| From: | Tobias Schlitt | Date: | Sat, 13 Nov 2004 17:01:20 +0000 |
| Subject: | Re: Regex guru needed | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-34375@lists.php.net to get a copy of this message | ||
Hi Aaron Wormus!
On 11/13/2004 10:44 AM you wrote:
I try creating a regex which extracts all function/method prototypes from a PHP file. So far, I went pretty well, besides one problem. The regex below works pretty well, but only the last parameter of a function declaration is extracted. Maybe someone can give me a hint how to get all parameters (into seperate array elements)?
like preg_match_all() ?Same result here, since preg_match_all() just checks for multiple occurence of the complete regex, but has no effect on single parts of it. :( -- Tobias Schlitt GPG Key: 0xA6529579 a passion for php http://www.schlitt.info Like to say "thank you"? - http://pear.php.net/wishlist.php/toby