如何在 Notepad++ 中匹配所有不以“"xxxx"”开头的行

How to match all lines that do not start with ' "xxxx"' in Notepad++

我有以下文字:

    {

        "generatedDate": "Wed 2015.05.06 at 09:29:22 AM EDT",
        "keyCode": "1234",
        "id": "84848884",
        "configuration": "test",
        "_version_": 3218761876324876321

    },
    {

        "generatedDate": "Wed 2015.05.06 at 09:29:22 AM EDT",
        "keyCode": "1234",
        "id": "84848884",
        "configuration": "test",
        "_version_": 3218761876324876321

    }

如何匹配除以 "keyCode"(带引号)开头的行以外的所有行?注意 - "keyCode"

前面有几个空格 and/or 制表符

使用否定前瞻:

^(?!\s*"keyCode").*

live demo

我试过了:

^(?![ \t]*"keyCode":.*).*$

成功处理您的 JSON 文件