The exercise:
I was trying to find files containing "[" at the line beginning of some ASCII files,
so I searched for files containing the RegEx "\n\[" - without success. The same RegEx works OK in my text editor.
The workarounds/alternatives:
- search for RegEx "^\[" (works)
- search for hexadecimal representation of the values ("0d 0a 5b"). (works)
Suggestion:
The RegEx-search in the find files function doesn't seem to find CR/LF with "\n" -
maybe this can be added, if it's not hard to implement?
This is not mentioned in the help (a hint would be nice there, if this will not be added).
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
I searched for files containing the RegEx "\n\[" - without success.
Sorry, this cannot work, because RegEx in Total Commander is limited to single lines - it cannot find multiple lines. Therefore a regex search string will never contain any line breaks. However, the beginning and end of a line can be found via ^ and $.
However, the beginning and end of a line can be found via ^ and $.
This works fine, thanks.
Maybe this sentence can be added to the help, perhaps on a central position like the RegEx parameter description page
("Note: You can not use \n together in TC's RegEx search, but...").
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
The other modificators are not relevant for Total Commander, because the program only supports searching within one line.
OK, I missed that line, thanks. But the hint with the alternative is not there yet.
But this is maybe not a problem anymore, too, since now one can find the answer here with corresponding search keywords...
(for future searches: newline, line break)
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!