我一直在使用这个
(?<=(["']\b))(?:(?=(\\?))\2.)*?(?=\1)
,但它捕获了 Notepad++ 中所有具有 ""
的文本。我想在行首和行尾添加。看起来像下面这样。
示例文本:
"Monsters Imprisoned by Essences have a {0}% chance to contain a Remnant of Corruption"
搜索结果:
Monsters Imprisoned by Essences have a {0}% chance to contain a Remnant of Corruption
没有
""
替换为:
<divine>{{
,并在找到的文本末尾添加}}
最终结果:
<divine>{{Monsters Imprisoned by Essences have a {0}% chance to contain a Remnant of Corruption}}
需要一些正则表达式来查找没有
""
的行,并在找到的行的开头添加 <divine>{{
并在找到的行的末尾添加 }}