What are good regular expressions?

后端 未结 9 950
我寻月下人不归
我寻月下人不归 2021-02-08 05:00

I have worked for 5 years mainly in java desktop applications accessing Oracle databases and I have never used regular expressions. Now I enter Stack Overflow and I see a lot of

9条回答
  •  庸人自扰
    2021-02-08 05:13

    These RE's are specific to Visual Studio and C++ but I've found them helpful at times:

    Find all occurrences of "routineName" with non-default params passed:

    routineName\(:a+\)

    Conversely to find all occurrences of "routineName" with only defaults: routineName\(\)

    To find code enabled (or disabled) in a debug build:

    \#if._DEBUG*

    Note that this will catch all the variants: ifdef, if defined, ifndef, if !defined

提交回复
热议问题