문제

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