Replace 查找并替换重复条目记事本++;

Replace 查找并替换重复条目记事本++;,replace,notepad++,Replace,Notepad++,我已经生成了非常大的json文件,并且刚刚意识到我已经生成了一个重复的字段。与其再次输出所有这些文件(非常长),我认为如果我可以使用记事本++查找和替换功能在必要时编辑它们,这将是有益的 我的json字段如下所示: { "PlayerID":44, "CurrentTeam":"WAS", "Number":95, "CurrentAuctionValue":2, "CurrentAuctionValue":0, "LastPlayedPoints":0 }, { "PlayerID":1

我已经生成了非常大的json文件,并且刚刚意识到我已经生成了一个重复的字段。与其再次输出所有这些文件(非常长),我认为如果我可以使用记事本++查找和替换功能在必要时编辑它们,这将是有益的

我的json字段如下所示:

{
"PlayerID":44, 
"CurrentTeam":"WAS", 
"Number":95, 
"CurrentAuctionValue":2,
"CurrentAuctionValue":0,
"LastPlayedPoints":0
},
{
"PlayerID":11, 
"CurrentTeam":"WAS", 
"Number":96, 
"CurrentAuctionValue":0,
"CurrentAuctionValue":0,
"LastPlayedPoints":0
},
幸运的是,我的json生成代码始终使第二个CurrentAuctionValue为0,但我不需要此字段。为了方便起见,我想把它扔掉。拍卖值可能为0,但只有第一个CurrentAuctionValue才重要。是否有任何方法可以搜索多行并替换

基本上以“代码”格式,我想做:

Find: "CurrentAuctionValue":%d,\n"CurrentAuctionValue":0,\n
Replace: "CurrentAuctionValue":%d,\n

我尝试过使用记事本的搜索功能,但没有成功。欢迎对其他方法提出建议

搜索模式:
正则表达式

查找内容:
(“CurrentAuctionValue”:\d+,\r\n“CurrentAuctionValue”:0,

替换为:
$1


工作正常。非常感谢你!