Find Files fails with /\\: as text to find

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
CatalinIonescu_RO
New Member
New Member
Posts: 1
Joined: 2020-03-29, 07:49 UTC

Find Files fails with /\\: as text to find

Post by *CatalinIonescu_RO »

This is with TC 9.51, 64-bit on latest Win 10.

I wanted to find the

Code: Select all

"/\\:"
text in some C/C++ source files. The exact text was copied from an actual source file.

With the original text to find, search failed. In the end I was able to track it down to

Code: Select all

/\\:
with any shorter sequence producing results.

In the find files dialog the only check ticked is ANSI charset (Windows).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Find Files fails with /\\: as text to find

Post by *ghisler(Author) »

Backslashes are special in the "find text" edit box. As described in the help:
With \t you find tabstops, and with \n line breaks (ENTER) in texts. To find a backslash \, you need to give it twice: \\ .

So your search string needs to be changed to:

Code: Select all

/\\\\:
Author of Total Commander
https://www.ghisler.com
Post Reply