How to make search in TC

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
jasy
Junior Member
Junior Member
Posts: 9
Joined: 2008-06-25, 21:59 UTC

How to make search in TC

Post by *jasy »

I am sorry, I am a new guy, my question seems too stupid but...

I want to search the files with such title: string A and, (string B or C) should appear at least once?

when I trying, I found I can't even search the title with both A and B by simply type 'A B' just as in other search tools.

So, How can I make such simple search quickly, I don't want to use regex for such task?

Thanks,
User avatar
dott
Senior Member
Senior Member
Posts: 285
Joined: 2007-03-04, 00:58 UTC
Location: La Plata, Argentina

Re: How to make search in TC

Post by *dott »

jasy wrote: So, How can I make such simple search quickly, I don't want to use regex for such task?,
Hello

Sorry but without regex you can't.
Any way you should try regex, is very simple(at lease in this case), check regex and search for A(B|C)
jasy
Junior Member
Junior Member
Posts: 9
Joined: 2008-06-25, 21:59 UTC

Re: How to make search in TC

Post by *jasy »

dott wrote: Hello

Sorry but without regex you can't.
Any way you should try regex, is very simple(at lease in this case), check regex and search for A(B|C)
Hi, thanks for your help, but I think the regexp is order sensitive, right?
But I don't know the orders the appearances, any smart way other than enum all the possible orders to express such query?

Thanks,
User avatar
white
Power Member
Power Member
Posts: 4628
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Only two possibilities to enumerate:

Check RegEx and search for "(A.*(B|C)|(B|C).*A)"
jasy
Junior Member
Junior Member
Posts: 9
Joined: 2008-06-25, 21:59 UTC

Post by *jasy »

white wrote:Only two possibilities to enumerate:

Check RegEx and search for "(A.*(B|C)|(B|C).*A)"
Yes, it's surely only two in this case, and sorry for my carelessness, if I changed my criteria to contain all the three, A and B and C, how can I do?

((A|B|C).*){3,}seems ok in normal cases while in the file names where repeated string can hardly appear, but how it be done in more common case?

and not enum?

Thanks,
User avatar
dott
Senior Member
Senior Member
Posts: 285
Joined: 2007-03-04, 00:58 UTC
Location: La Plata, Argentina

Post by *dott »

So, you are aware of RegExp but don't want to use them? :)
jasy
Junior Member
Junior Member
Posts: 9
Joined: 2008-06-25, 21:59 UTC

Post by *jasy »

dott wrote:So, you are aware of RegExp but don't want to use them? :)
Hi, I am just learning regexp, so I don't know if there is any more clever way to do such search, especially when I have more keywords want to search, the enumeration seems inefficient.

So how?
User avatar
white
Power Member
Power Member
Posts: 4628
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

I know a straightforward solution, but I don't know if it is simple enough for you. Do this:

* Search for A
* Feed to listbox
* Select all
* Search for B
* Feed to listbox
* Select all
* Search for C


BTW. The Multi-Rename Tool's search and replace function does support multiple search queries in one step. But that probably does not help you.
jasy
Junior Member
Junior Member
Posts: 9
Joined: 2008-06-25, 21:59 UTC

Post by *jasy »

white wrote:I know a straightforward solution, but I don't know if it is simple enough for you. Do this:

* Search for A
* Feed to listbox
* Select all
* Search for B
* Feed to listbox
* Select all
* Search for C


BTW. The Multi-Rename Tool's search and replace function does support multiple search queries in one step. But that probably does not help you.
Hi, thanks a lot. I am indeed somehow straightforward to insist searching all in one step :) , so your search and feed method is just fine.

And the multi-rename search cannot filter the results but modify it.

Thanks,
User avatar
white
Power Member
Power Member
Posts: 4628
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

And you have not even tried the plugin tab in the search dialog yet...

At the Plugins tab do:
* Check option Search in plugins
* Check option Combine with AND (all match)
* Fill in plugin rules like this:

Code: Select all

Plugin  Property  OP          Value
tc      name      contains    A
tc      name      contains    B
tc      name      contains    C
jasy
Junior Member
Junior Member
Posts: 9
Joined: 2008-06-25, 21:59 UTC

Post by *jasy »

white wrote:And you have not even tried the plugin tab in the search dialog yet...

At the Plugins tab do:
* Check option Search in plugins
* Check option Combine with AND (all match)
* Fill in plugin rules like this:

Code: Select all

Plugin  Property  OP          Value
tc      name      contains    A
tc      name      contains    B
tc      name      contains    C
Oh, yes, that it is.
Thanks a lot, I have thought your last post is the most easy way tc can achieved...
Post Reply