Author Topic: How to exclude hyphen, dash and lower dash from search  (Read 635 times)

Viviancels

  • Newbie
  • *
  • Posts: 5
    • View Profile
Hello
First question: I have the folder named Tritonal-Kinetik. When I search Tritonal Kinetik I get all folders with tritonal or Kinetik, but not the folder "Tritonal-Kinetik"
Also when I have the folder Tritonal_Kinetik
Is there the way to exclude "-", "_" and other marks whithout regex so I can just insert words into the search box?

Another question: how do I find a file whose name contains both words  "Tritonal Kinetik" and not any word?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4645
    • View Profile
    • Multi Commander
Re: How to exclude hyphen, dash and lower dash from search
« Reply #1 on: May 05, 2025, 07:48:45 »
It works for me.

Might be that you are searching using wildcard and you have no wildcards there.  Try select "contains"

If you want to match both Tritonal-Kinetik  and Tritonal_Kinetik , do a wildcard search for "Tritonal?Kinetik"
If "ANY" character at that places is not good and you only want _ or - then you have to go for regex

In you click on advanced and open the advanced find files dialog you have more control and can also set items to exclude and so on

Viviancels

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How to exclude hyphen, dash and lower dash from search
« Reply #2 on: May 07, 2025, 18:28:30 »
Thank you.
In advanced if I search Tritonal Kinetik then value is Tritonal|Kinetik (Tritonal or Kinetik), results contain folders with any of this two words, and if I search"Tritonal Kinetik" then value is Tritonal Kinetik, results contain only folders with both this words. Is it possible to set the second method by default so that you don't have to quote the phrase every time?

I found that if you put the regex setting in "look for" field and in "matching method", then the search is carried out according to the second method. This is just what I need: after searching Tritonal Kinetik (without quotes) results contain folder with both words in its name only
« Last Edit: May 07, 2025, 18:33:59 by Viviancels »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4645
    • View Profile
    • Multi Commander
Re: How to exclude hyphen, dash and lower dash from search
« Reply #3 on: May 07, 2025, 22:58:43 »
Yes if you select regex it will try to use that as a regexp and since it does not contains any special control characters, the regexp will just do a match for it.