First off, I am HORRIBLE with Regex. Apologies up front if this is dead easy and I'm just missing it :(
Ok, so let's say I'm looking to parse my source code, and find all of my private functions. Further, let's say I want to get that entire block of code so I can examine it.
Regex match of:
Private Function[\s\S]*?End Function
works great.
Now, what if I want to find all functions that are missing a Return statement? I can not seem to figure this one out (see above re: regex and I don't get along famously).
Anyone mind pointing me in the right direction? I'm using .NET implementation of regex if that matters (and it seems to - none of the Java examples I find seem to work!)
I'm using regexstorm.net for my testing, if it matters :) Thanks!