[Solved] Search for \ at the end of line in *.TXT
-
w64bit
- Posts: 338
- Joined: Wed Jan 09, 2013 9:06 am
[Solved] Search for \ at the end of line in *.TXT
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
Assuming a line ends with '\r' or '\n' character or 'End of file' (EOF), this should work:
ext:TXT regex:content:".*?\\(?:[\r\n]|$)"
ext:TXT regex:content:".*?\\(?:[\r\n]|$)"