Page 1 of 1

Finding folder names - regex puzzle

Posted: 08 May 2015 21:26
by Papoulka
XY Ver. 15.10.0002 // Find Files | Name & Location // Mode: RegExp

I'm trying to find folders with names that contain two digits separated by a comma and a space eg: "reports 1, 2 from fall"

When I use this regex:
([0-9])(, )([0-9])
or this one:
([0-9])(,)(\ )([0-9])
XY finds all files with this criterion, but no folders.

If I remove the space in the regex:
([0-9])(,)([0-9])
XY finds all files and folders that have digits separated only by a comma, as expected.

Any idea why the first regex above (with the space) works with files but not with folders? Bug, or something I'm missing?

Re: Finding folder names - regex puzzle

Posted: 08 May 2015 21:52
by highend
Your first two regexes find folders as well. At least for me... Maybe you've ticked something else. Reset your filter (by clicking on that button) and just try it again.

Btw,
\d, \d
Is a bit easier as a pattern (and less to type)

Re: Finding folder names - regex puzzle

Posted: 08 May 2015 22:13
by Papoulka
:oops: Operator error, as we say... There weren't any such folders to find. Very sorry to waste your time. Thanks again for your help.