leighzions
asked on
regexp for symol outlining in Codewright
I use an editor called Codewright to do my Perl programming in. It has a symbol ouliner that creates a list of all your subrotuines/functions for easy navigation. These are defined for languages like C and Basic, using it's own form of regexps. For Pascal procedures it's:
^[ \t]*procedure[ \t]+[a-zA-Z0-9_]+((\.[a-zA -Z0-9_]+\c [^a-zA-Z0- 9_])|(\c[^ \.a-zA-Z0- 9_])).*[\n ]
What would be needed to outline perl functions?
^[ \t]*procedure[ \t]+[a-zA-Z0-9_]+((\.[a-zA
What would be needed to outline perl functions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks teraplane, that worked. Sholomy, Codewright has it's own regexp syntax which is slightly differnet from Perl, there is no \s, only space and \t.
the \n is not obligatory at the end