Hello, @scott-sumner and All,
Scott, I investigated this “pseudo” bug and here are my ( non exhaustive ) conclusions !
For an easy reading, click on the ¶ button, of the Tools bar, to visualize all the hidden characters
First, these weird results exist from a very long time ( Probably from adding the Extented search mode ? ) I was able to reproduce it, with the old v5.9.8 version !
Case A : IF you select any text, WITHOUT including any following End of line character(s) ( No CR nor LF chars ), any immediate search, in NORMAL search mode, clicking on the Find All in Current document OR on the Find All in All Opened Documents, work normally ! No problem :-))
Case B : IF you select any text, INCLUDING its End of Line character(s), any immediate search, in NORMAL search mode, clicking on the Find All in Current document OR on the Find All in All Opened Documents, does NOT work properly, if the search includes any of the literal following characters, below, and produces NO result :-((
\t
\n
\r
\0
\\
Case C : IF you select any text, INCLUDING its End of Line character(s), which contains escaped characters, except for the five above, any immediate search, in NORMAL search mode, clicking on the Find All in Current document OR on the Find All in All Opened Documents, DOES find result(s), if any !
However, note that a bad side-effect of Case B OR Case C searches, is that the search mode is, wrongly, changed from Normal to Extended
So, if you, really, need to search for text, containing any of the five literal forms, below, and ending by its End of Line characters :
\t
\n
\r
\0
\\
Just follow the few steps, below :
Open the Find dialog ( Ctrl + F )
Type the corresponding regexes, below, in the Find what: box
\\t\R
\\n\R
\\r\R
\\0\R
\\\\\R OR
\\{2}\R
Check the Regular expression search mode
Click on the Find All in Current document OR on the Find All in All Opened Documents button
You may, as well :
Select, first, the text, including its End of Line characters
Open the Find dialog ( Ctrl + F )
In the Find what: field, simply escape, with an other \, inserted before, each anti-slash character ( \ )
Check the Regular expression search mode
Click on the Find All in Current document OR on the Find All in All Opened Documents button
Best Regards,
guy038