I have this text file containing employees and their details, I want to mark only those employees whose job_title is Operations Manager and their business_email. Please tell me how can I do this in Emeditor or Notepad++ or any other way?
Sample
["state": true,
"employees": [
{
"first_name": "Kate",
"last_name": "Garland",
"headline": "Director of Communications and Enrollment",
"job_title": "Director of Communications and Enrollment",
"location": "Clearwater, Florida, United States",
"business_email": "[email protected]",
"personal_email": "[email protected]",, fi}{ln}"
},
{
"first_name": "Dorina",
"last_name": "Valentin",
"headline": "Operations Manager",
"job_title": "Operations Manager",
"location": "New York, New York, United States",
"business_email": "[email protected]",
"personal_email": "",, fi}{ln}"
},
{
"first_name": "Shannon",
"last_name": "Sheppard",
"headline": "Founding Member",
"job_title": "Founding Member",
"location": "Tampa, Florida, United States",
"business_email": "[email protected]",
"personal_email": "[email protected]",, fn}{ln}"
},
{
"first_name": "Nicole",
"last_name": "Peacock",
"headline": "Realtor",
"job_title": "Realtor",
"location": "Dayton Metropolitan Area",
"business_email": "[email protected]",
"personal_email": "[email protected]",, fi}{ln}"
},
Set the following options under EmEditor - Find - Advanced button, and set the following options:
Search for: ^\s*{.+?"Operations Manager".+?},
and Click the "Select All" button.
Then Find ".", click "In the selection only" and Click the Bookmark button:
This will bookmark the relevant records. If you just want to bookmark the email (It wasn't entirely clear in your question), then change "." to "business_email" and click bookmark.