在记事本中每一行的最后一个字母上加一个字母++。

问题描述 投票:0回答:1

我想在最后一封信之前加上一封信。\ 在Notepad++中的每一行,像这样。

before :

product\190\1017\evita-cover-art.jpg

后面的 。

product\190\1017b\evita-cover-art.jpg

所以字母 b 是在最后一个 \ ,

有很多行,所以我可能会用regex来查找和替换。

regex notepad++ line add letter
1个回答
0
投票
  • Ctrl+H
  • 找到什么。\\[^\\]*$
  • 替换为: b$0
  • CHECK 围绕
  • 检查 正则表达式
  • 替换所有

解释:

\\          # a backslash
[^\\]*      # 0 or more any character that is not a backslash
$           # end of line

替换。

b           # literally
$0          # content of group 0 (i.e. the whole match)

截图(前)。

enter image description here

截图(后)。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.