我有这样的 json 数组:
[
{
"id": 2,
"title": "Mr",
"name": "Harry Robinson",
"company": "ResearchBch",
"email": "anything",
"age": 38,
"startDate": "2015/07/25",
"salary": "$421069.74"
},
...
]
我想将所有内容替换"email": "anything"
为 如何使用 Notepad++ 来实现这一点?"email": "[email protected]"
答案1
假设所有电子邮件地址目前都没有@test.com
:
搜索:
("email": ")(.*)(")
(寻找"email": "
,anything
,"
)
用。。。来代替:
\1\[email protected]\3
(替换为第 1 组("email": "
),第 2 组(anything
),添加@test.com
,第 3 组"
)