1

I have json array like that:

   [
   {
        "id": 2,
        "title": "Mr",  
        "name": "Harry Robinson",
        "company": "ResearchBch",
        "email": "anything",
        "age": 38,
        "startDate": "2015/07/25",
        "salary": "$421069.74"
    },
    ...
    ]

I want to replace all "email": "anything" to "email": "[email protected]" How can I do that with Notepad++?

1 Answer 1

2

Assuming all email addresses currently don't have @test.com:

Search:

("email": ")(.*)(")

(Find "email": ", anything, ")

Replace with:

\1\[email protected]\3

(Replace with group 1 ("email": "), group 2 (anything), add @test.com, group 3 ")

enter image description here

1
  • I am just thinking and writing same answer. Nice.
    – Sagar007
    Mar 3, 2016 at 8:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .