This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Filter issue, difference between search and copy?

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC9.0x bug reports (English) Printable version
View previous topic :: View next topic  
Author Message
rex1701
Junior Member
Junior Member


Joined: 21 Feb 2011
Posts: 3

PostPosted: Fri Jan 20, 2017 6:06 am    Post subject: Filter issue, difference between search and copy? Reply with quote

Hi

I have found a problem where I can search for, but not use as a copy filter:

files: *.xml,
in the period: 1/10/2016-31/12-2016,
containing: <tumor>\n <rbt_indikator>Ja

I also seem unable to extend the filter with an OR:
<tumor>\n <rbt_indikator>Ja|<blodsygdom>\n <rbt_indikator>Ja

Regards
Back to top
View user's profile Send private message
sqa_wizard
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 3287
Location: Germany

PostPosted: Fri Jan 20, 2017 3:37 pm    Post subject: Reply with quote

Quote:
containing: <tumor>\n <rbt_indikator>Ja

What do you mean with "\n"? New line? Bad guess!

TC Help wrote:
\n Finds subexpression n another time in the search result

Just press the button at search dialog and click the link to "regular expressions" to see all possible notations.
_________________
#5767 Personal license
Back to top
View user's profile Send private message
Stefan2
Power Member
Power Member


Joined: 13 Sep 2007
Posts: 1661
Location: Europa

PostPosted: Fri Jan 20, 2017 3:52 pm    Post subject: Reply with quote

Just to be clear:

A literary '\n' stands for a new line in C-like programming languages.


sqa_wizard wrote:

TC Help wrote:
\n Finds subexpression n another time in the search result


The help doesn't means the letter 'n' literary,
here the 'n' stands for 'number' like '1' or '2' to represents the n'th (...)-Subexpression

See example on next line in help.


Quote:
Backreferences

\n Finds subexpression n another time in the search result.
Example: (.+)\1+ finds e.g. abab (where the first ab is found by .+ and the second by \1+ )









 
Back to top
View user's profile Send private message
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 7906
Location: Russian Federation

PostPosted: Fri Jan 20, 2017 5:00 pm    Post subject: Reply with quote

Meanwhile it really looks like a bug: TC filters files with search preset that finds some text in files but not when this text contains \n character.

rex1701 wrote:
I also seem unable to extend the filter with an OR

You just can't do that using find text field. Normal text search only supports single search pattern. Regex text search does support multiple search patterns separated with pipe (|), but regex search works only within separate lines, you can't search for multiline pattern. However you can find multiple patterns (combined with AND or OR operators) using plugins tab and some WDX plugin that returns full file text.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC9.0x bug reports (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group