交換したい1回目の発生Notepad++ を使用して各行に正規表現による検索/置換を実行します。
探す: ,"",
と置換する:," ",
つまり、2 つの二重引用符の間に 2 つのスペースを挿入します。
どうすればいいですか?
答え1
次の正規表現のように実行できます。
- 検索対象:
,"",(.*)$
- と置換する:
," ",\1
- 検索モード: 正規表現
入力:
this is a ,"", here and another is here ,"", at the end
next ,"",,"", here ,"",
another one ,"",
,"", last one
期待される結果:
this is a ," ", here and another is here ,"", at the end
next ," ",,"", here ,"",
another one ," ",
," ", last one