^\s*case\s+.*?:\s*$
My tool reads a xml file to parse the soruce code files (like java, C++ etc..) to generate the line count, the above expression in my xml file makes all the lines which has only the word " case : " to get ignored. Could someone plese help me in below two cases to write above kind of expression.
CASE1:- If any line starts with : (colon), then that line should be ingored. For example, in the below line the word END stars with : , so this line should be ignored. (there is no space betwwen : and END word)
:END
CASE 2:- if any line starts with the word struct then that line should be ignroed. for example, below line should be ingnored
struct simple