Graeme's Wiki

regex examples
Here is an example to find Object Pascal functions
 function[\t ]+[a-zA-Z.]+[a-zA-Z]*[(a-zA-Z:;, \t]*[)]*[: \t]*[a-zA-Z]+;

Here is an example to find Object Pascal procedures
procedure[\t ]+[a-zA-Z.]+[a-zA-Z]*[(a-zA-Z:;, \t]*[)]*;