我不知道在记事本++中为以下示例使用哪个RegEx表达式?
之前:
C:\Users\PedjaNBGD\Desktop\Nidza Bleja sve pesme\Altina Dzez\
C:\Users\PedjaNBGD\Desktop\Nidza Bleja sve pesme\28 23 - Nidza Bleja, Mare G & Gorki\
之后:
Altina Dzez
28 23 - Nidza Bleja, Mare G & Gorki
答案 0 :(得分:1)
这是一条路:
^.*\\([^\\]+)\\(\R)
$1$2
. matches newline
说明:
^ : beginning of line
.* : 0 or more any character but newline
\\ : a backsmash (have to be escaped because it is a special character in regex)
([^\\]+) : group 1, 1 or more any character that is NOT a baskslash
\\ : a backslash
(\R) : group 2, any kind of line berak
替换:
$1$2 : content of group 1 and content of group 2
给定示例的结果
Altina Dzez
28 23 - Nidza Bleja, Mare G & Gorki
之前:
之后: