I need to find certain chunks of code that are missing the raise keyword as follows:
These are the types of matches that I'm searching for
except
FreeAndNil(result);
end;
While these should be ignored:
except
FreeAndNil(result);
raise;
end;
Bear in mind that between the except and end; keywords there may be any type or length of text.
I tried the following regex expression: except((?!raise).)*end; however it does not work on a multiline scenario.