regular/notepad++ 表达式
regular/notepad++ expressions
基本上,我正在为提取数据和导入新领域而苦苦挣扎。可以这样做吗:
namewithprefix="PS4 | Call of Duty" namewithoutprefix=""
我希望它看起来像这样
namewithprefix="PS4 | Call of Duty" namewithoutprefix="Call of Duty"
两者在 xml 文档中位于同一行
非常感谢
查找:
namewithprefix="(.+) \| (.+)" namewithoutprefix=""
替换:
namewithprefix=" | " namewithoutprefix=""
.+
将找到任意数量的 1 或多个字符,并且 ()
中的任何内容都被捕获为变量。然后在替换中使用这两个变量作为 </code> 和 <code>
.
基本上,我正在为提取数据和导入新领域而苦苦挣扎。可以这样做吗:
namewithprefix="PS4 | Call of Duty" namewithoutprefix=""
我希望它看起来像这样
namewithprefix="PS4 | Call of Duty" namewithoutprefix="Call of Duty"
两者在 xml 文档中位于同一行
非常感谢
查找:
namewithprefix="(.+) \| (.+)" namewithoutprefix=""
替换:
namewithprefix=" | " namewithoutprefix=""
.+
将找到任意数量的 1 或多个字符,并且 ()
中的任何内容都被捕获为变量。然后在替换中使用这两个变量作为 </code> 和 <code>
.