-TC8.50 b8: Double Backslashes in Searchtext not found

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
TychoBarfy
Senior Member
Senior Member
Posts: 350
Joined: 2005-08-13, 15:13 UTC
Location: Berlin, Germany
Contact:

-TC8.50 b8: Double Backslashes in Searchtext not found

Post by *TychoBarfy »

Both TC x64/x86:
If you go to find text in files (i.e. in UTF-9 formatted .cs-files) and there are some containing strings like: Char c = '\\';

In Find text (Options ANSI charset (Windows) and UTF-8 enabled) type in:'\\'
No results...

In Find text (Options ANSI charset (Windows) and RegEx (2)) type in:.*'\\\\'.*
Results...
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

According to help topic,
To find a backslash \, you need to give it twice: \\ .
Your regex works for me w/o changes.

I tested it with ANSI file with mentioned string (UTF-8 looks like ANSI when there are no non-latin characters). Please provide file sample where it doesn't work for you. Can you see file contents with TC lister by F3?
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC8.50 b8: Double Backslashes in Searchtext not found

Post by *white »

TychoBarfy wrote:In Find text (Options ANSI charset (Windows) and UTF-8 enabled) type in:'\\'
No results...
That is correct. Like MVV said, also for normal search you need to double the \ character.
TOTALCMD.CHM wrote:Find text
If this option is checked, you can enter text to be searched. With \t you find tabstops, and with \n line breaks (ENTER) in texts. To find a backslash \, you need to give it twice: \\ .
TychoBarfy
Senior Member
Senior Member
Posts: 350
Joined: 2005-08-13, 15:13 UTC
Location: Berlin, Germany
Contact:

Re: TC8.50 b8: Double Backslashes in Searchtext not found

Post by *TychoBarfy »

white wrote:That is correct. Like MVV said, also for normal search you need to double the \ character.
TOTALCMD.CHM wrote:Find text
If this option is checked, you can enter text to be searched. With \t you find tabstops, and with \n line breaks (ENTER) in texts. To find a backslash \, you need to give it twice: \\ .
That's it and it makes sense. Sorry for my silly post!
Please close this thread!

Thanks MVV and white
-- TB --
Post Reply