在Notepad ++中查找并替换多个项目

时间:2016-10-04 18:41:22

标签: regex notepad++

我想找到所有这些结构:

[m6][c green]Topic:[/c] football.[/m]
[m6][c green]Topic:[/c] tennis.[/m]
[m6][c green]Topic:[/c] swimming.[/m]

并用这些结构替换它们:

[m6][c green]Topic: football.[/c][/m]
[m6][c green]Topic: tennis.[/c][/m]
[m6][c green]Topic: swimming.[/c][/m]

谢谢!:)

1 个答案:

答案 0 :(得分:0)

你应该在记事本++中尝试这个:

(\[m6\]\[c green\]Topic:)(\[\/c\]) (.*?)\.(\[\/m\])

并替换为:

\ 1 \ 3. \ 2 \ 4

Explaination is given here