【发布时间】:2023-01-31 16:33:58
【问题描述】:
我有这个包含员工及其详细信息的文本文件,我只想标记那些 job_title 是 Operations Manager 的员工和他们的 business_email。请告诉我如何在 Emeditor 或 Notepad++ 或任何其他方式中执行此操作?
样本
["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": "kgarland@11howard.com",
"personal_email": "kate@kateyoga.com",, fi}{ln}"
},
{
"first_name": "Dorina",
"last_name": "Valentin",
"headline": "Operations Manager",
"job_title": "Operations Manager",
"location": "New York, New York, United States",
"business_email": "dvalentin@11howard.com",
"personal_email": "",, fi}{ln}"
},
{
"first_name": "Shannon",
"last_name": "Sheppard",
"headline": "Founding Member",
"job_title": "Founding Member",
"location": "Tampa, Florida, United States",
"business_email": "ssheppard@11howard.com",
"personal_email": "sheppardsm@hotmail.com",, fn}{ln}"
},
{
"first_name": "Nicole",
"last_name": "Peacock",
"headline": "Realtor",
"job_title": "Realtor",
"location": "Dayton Metropolitan Area",
"business_email": "npeacock@11howard.com",
"personal_email": "nicoleschuder@hotmail.com",, fi}{ln}"
},
【问题讨论】:
-
你试过什么了?您要解析的文件有多大?如果您包含更多详细信息,将会很有帮助。
-
使用 JSON 解析器。避免公开真实姓名和邮件
-
@MaximilianBallard 原始 txt 文件大小为 100mb,我尝试对其进行 json 解码,但该文件未在 json 中正确解析,所以我想我需要使用记事本++或 emeditor 来标记字段,然后删除未标记的行。
-
我还可以附上示例数据 txt 文件,如果你们能帮忙的话
-
@Toto 以上这些都不是真实的,只是样本演示数据
标签: notepad++ emeditor itemeditor