I have lines like this:

whatisthis||
whatisth|searchfor
whatisth||
whatist|searchfor
what|
what||

I want automatically remove these one:

whatis||

And

what|

With regex on notepad++, how can i do please ? All wanted line are those have two parameters:

whatist|searchfor

I want only the line like this:

EXAMPLE|EXAMPLE

Thank you.

有帮助吗?

解决方案

You can use the end of line anchor $

search:  .*\|(\r?\n|$)
replace: nothing

or better:

search:  (\r?\n|^).*\|$
replace: nothing
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top