I have a pascal code file and need to parse it (using c#) and display all the public functions, my file looks something like that (not actual code):
public
function Test(str: string):bool;
function Test1(str: string):bool;
function Test2(str,str1,str2,str3
str4: string):bool;
function Test3(str: string):bool;
published
Notice Test2 there, and how it is in multiple lines. I can do some basic (very basic) regular expressions, but can't make anything that work with this. Basically what i need is: get all functions between the strings "public" and "published" and return it in one single line...