[Solved] Search for \ at the end of line in *.TXT

Discussion related to "Everything" 1.5 Alpha.
Post Reply
w64bit
Posts: 253
Joined: Wed Jan 09, 2013 9:06 am

[Solved] Search for \ at the end of line in *.TXT

Post by w64bit »

How can I search inside TXT files for a backslash (\) at the end of line?
Last edited by w64bit on Fri Feb 16, 2024 12:05 pm, edited 1 time in total.
nikov
Posts: 131
Joined: Fri Dec 24, 2021 10:31 am

Re: Search for \ at the end of line in *.TXT

Post by nikov »

Assuming a line ends with '\r' or '\n' character or 'End of file' (EOF), this should work:
ext:TXT regex:content:".*?\\(?:[\r\n]|$)"
Post Reply