Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^(Function|Sub)(\s+[\w]+)\([^\(\)]*\)
|
Description |
Updated, changed [\w]* to [\w]+ because pattern should not match Sub (), there would be no function name which would be incorrect.
Will extract function declarations from ASP or also VB I assume. Will even capture declarations that break across new lines or ones that use the underscore(line continuation character) in Microsoft's VB, VBA, ASP, etc. Had to put this together to document some code on a project and didn't see anything like it on the web. I hope it helps out anyone else who has to re-engineer ASP or VB code.
|
Matches |
Function MyFunc(Arg1, Arg2, Arg3, Arg4)
|
Non-Matches |
'This is a comment for MyFunc(Arg1,Arg2,Arg3) and this regexp wouldn't work.
|
Author |
Rating:
Not yet rated.
James Fal
|
Displaying page
of
pages;
Items to