One of the tool we use reads a XML file to generate the number of lines of code from given source files types (like.. java,sql etc..). Below is the line of code wirtten in the XML file which is used to ignore the lines which have only the words "do" or "while".
<codeArea name="Begin/End tags" isCode="false" >
<expression>^\s*begin\s*$</expression>
<expression>^\s*end\s*$</expression>
</codeArea>
In the same way, how can I write the code to ignore the "case" statements which is used with "switch" in programming languages. For example, in the below code i want to ignore "case" statements
switch ((char)(e.KeyChar))
{
case '\b':
case "Thr":
case '1':
}
I tried below way, but it doesn't worked. could someone please help on it.
<expression>^\s*case[*]:\s*$</expression>

