正则表达式(立即给分)
我想要取出.h和.c文件中所有的变量和常量, 如:
#define COUNTS_PER_TICK 750
volatile BYTE SCH_bDisable = 0;
volatile BYTE SCH_bUserCodeValid = 1;
volatile BYTE SCH_bRunUserCodeAll = 0;
volatile BYTE SCH_bRunUserControlCode = 1;
int nForceCommunication = 0;
请问如何写正则表达式,立即给分,谢谢
------解决方案--------------------
C# code
(?i)(?<=(#defind|int|byte|double|...有多少写多少)\s+)[^\s]+