标签: editpad

如何使用正则表达式提取json字段?

初学者RegExp问题.我在文本文件中有JSON行,每个都有稍微不同的Fields,但如果有的话,我想为每行提取3个字段,忽略其他所有字段.我如何使用正则表达式(在编辑板或其他任何地方)执行此操作?

例:

"url":"http://www.netcharles.com/orwell/essays.htm",
"domain":"netcharles.com",
"title":"Orwell Essays & Journalism Section - Charles' George Orwell Links",
"tags":["orwell","writing","literature","journalism","essays","politics","essay","reference","language","toread"],
"index":2931,
"time_created":1345419323,
"num_saves":24
Run Code Online (Sandbox Code Playgroud)

我想提取URL,TITLE,TAGS,

regex text json replace editpad

6
推荐指数
3
解决办法
6万
查看次数

标签 统计

editpad ×1

json ×1

regex ×1

replace ×1

text ×1