The background is that I have a complicated memory issue in Delphi. But a theory is that an enum of 5 values can be the root of the bug. So my question to you is:
How do I write a regexpression to search sourcefiles for an enum with 5 values ? An enum in Delphi looks like this
myEnum = (value1,value2,value3,value4,value5);
There can of course be any combination of spaces, tabs and newlines between the values.