Hi,
We need to identify and then process switch/case statements in code based on some business rules.
A typical switch statement:
switch (a)
{
case "A":
case "B":
result = "T";
result1 = "F";
default: result = "F";
}
I have been able to create two patterns to match the switch body in the first step and the case labels and body in the second step, however I am looking for a single regex which will allow me to extract case labels and bodies.
We do not have nested switches.
Kind regards,