我需要找出双引号的奇数和偶数

时间:2017-03-04 08:23:13

标签: regex replace find notepad++

我需要在记事本++中逐行找出文本文件中出现双引号的奇数和偶数,并用“甚至用”替换奇数出现。

arch\" target=\"_blank\"\u003ELearn
more\u003C/a\u003E","hen":true,"h1":"en-IN","htt":"List
ening for \"Ok Google\"","im":"Click
\u003Cb\u003EAllow\u003C/b\u003E to start voice
search","iw":"Waiting...","lm":"Listening...","lu":"%1$
s voice search not available","ne":"No Internet
connection","nt":"Didn't get that. \u003Cspan\u003ETry

1 个答案:

答案 0 :(得分:0)

你需要两次通过:

  1. 替换属于一起的双引号对:

    查找内容: "(.*?)"
    替换为: “$1”

    选择正则表达式 请勿选中 .匹配换行符复选框

  2. 替换剩下的任何悬空引号:

    查找内容: "
    替换为: