can any one please help me , how to remove lines if it has comments like '//' or single or multi line comments '/*...*/ '
For example:
/\*#define 0x00000000*/
//#define 0x00180000
// #define 0x20000000
// abcd
/*#define 0x00080000
#define 0x40000000*/
#define 0x00014000
#define 0x00000800
/* defg */
#define 0x00080000
#define 0x40000000
The output should be
#define 0x00014000
#define 0x00000800
#define 0x00080000
#define 0x40000000
in C# using Regex or any other method, thanks in advance