我有以下文字:
{
"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”前面有几个空格和/或制表符
答案 0 :(得分:4)
答案 1 :(得分:0)
我试过了:
^(?![ \t]*"keyCode":.*).*$
成功使用JSON文件