Hi!
Sorry, I am unable to search for filenames with various items.
For example: I want to find all files containig "mother" AND "father".
Is there any solution yet?
Thank You!
Search for various items in filenames
Moderators: XnTriq, helmut, xnview
Re: Search for various items in filenames
Pierre, thank You for Your answer!
This problem was discussed here several times, and I have read some of Your advices in the past, but they all do not work.
There is no simple way to do "AND" searches with regexp, contrary to "Or" searches which are easy with "|" between the search terms. But nothing similar for "AND".
Maybe You eventually will find time to implement such a type of filesearch. Not only Users like me with about 50.000 pics would be very grateful.
Thanks in advance an best regards!
This problem was discussed here several times, and I have read some of Your advices in the past, but they all do not work.
There is no simple way to do "AND" searches with regexp, contrary to "Or" searches which are easy with "|" between the search terms. But nothing similar for "AND".
Maybe You eventually will find time to implement such a type of filesearch. Not only Users like me with about 50.000 pics would be very grateful.
Thanks in advance an best regards!
Re: Search for various items in filenames
If it's not possible to find a "and" operator in regex, a workaround for developper could be to add "filename" field in "add conditions" items.
So we'll be able to create conditions like :
- match all of the following conditions (enable)
- filename contains father
- filename contains mother
directory or folder name fields are also welcome
So we'll be able to create conditions like :
- match all of the following conditions (enable)
- filename contains father
- filename contains mother
directory or folder name fields are also welcome
Last edited by michel038 on Mon Oct 01, 2018 6:28 pm, edited 4 times in total.
Catalogage avec XnviewMP : https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Re: Search for various items in filenames
With regex, two searches must be proceeded
mother.*father
father.*mother
The first one looks for names containing mother and father
The second one looks for father and mother
mother.*father
father.*mother
The first one looks for names containing mother and father
The second one looks for father and mother
Catalogage avec XnviewMP : https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Re: Search for various items in filenames
Separate searches for 'mother followed by father' and 'father followed by mother' -- the sequence of the specified search terms matters?
Re: Search for various items in filenames
Yes, i think
means : string mother string father string
where "string" can be an empty string
I learnt this here : https://en.wikipedia.org/wiki/Regular_expression
Code: Select all
mother.*father
where "string" can be an empty string
I learnt this here : https://en.wikipedia.org/wiki/Regular_expression
Catalogage avec XnviewMP : https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm