UltraEdit - some useful function regexes

From: Date: Tue, 03 Apr 2001 16:31:55 +0000
Subject: UltraEdit - some useful function regexes
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-46844@lists.php.net to get a copy of this message
Hi Thanks to Sebastian Bergmann's recent wordfile, I got turned on the the potential of the function list in UltraEdit. Here are some PHP regexes which UltraEditers may find useful. If you use all three, your function list will list all the constants, class vars and functions in the script like this: "CONSTANT" "ANOTHER_CONSTANT" $class_var_one $some_more_var_declarations function_1 function_2 etc... Here are the goodies... /Function String = "%[ ^t;]++function[ ]+^(*^)(*" /Function String 1 = "%[ ^t;]++var[ ]+^([$][a-z,A-Z,1-0,_]+^)+[ ^t]+=*" /Function String 2 = "%[ ^t;]++define[ ]++[(][ ]++^([A-Z,1-0,_"']+^)*" Also, here is a regex for an sql file that will list everything you CREATE /Function String = "%[ ^t;]++CREATE[ ]+[a-z,A_Z,1-0,_]+[ ]+^([0-9,a-z_]+^)*" I'm no regex expert, but these work for me. Hope someone finds them useful. Sebastian - if you like them, you might want to add them to your "Open Source" wordfile... Geoff Caplan

« previous php.general (#46844) next »