Regex help please

From: Date: Sun, 11 Jan 2004 23:46:54 +0000
Subject: Regex help please
Groups: php.general 
Request: Send a blank email to php-general+get-174263@lists.php.net to get a copy of this message
I have tried numerous variations, but my regex skills suck! I would appreciate anyone who can give me a pattern to use in preg_match_all() to match the following (I have the first part up to ANYTHING working): '|function ([\w\d\_]+)\((.*)\)ANYTHINGreturn (ANYTHING);|' So parsing a PHP file I hope to have 3 backreferences that return the "function name", "function args" and "return value (if present)" of all functions. Thanks! -Shawn

« previous php.general (#174263) next »