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
--
PHP General 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]