regex issue

General discussion related to "Everything".
sk2107
Posts: 387
Joined: Sun Aug 07, 2022 8:48 pm

regex issue

Post by sk2107 »

Hello everybody
I used to use regex:^[0-9_-]+(\.[^.]+)?$ to filter files with only number but it is not working anymore, what could be the issue?


Thank you
Regards
void
Developer
Posts: 20164
Joined: Fri Oct 16, 2009 11:31 pm

Re: regex issue

Post by void »

Is Match path enabled under the Search menu?
-If so, the regex expression must match the full path.
PATH will also be shown in the status bar on the right.

Please try:

nopath:regex:^[0-9_-]+(\.[^.]+)?$


-or-

regex:stem:^[0-9_-]+$


-or-

regex:\\[0-9_-]+(\.[^.]+)?$




no-path:
stem:
sk2107
Posts: 387
Joined: Sun Aug 07, 2022 8:48 pm

Re: regex issue

Post by sk2107 »

yes Match path was enabled, I tried regex:\\[0-9_-]+(\.[^.]+)?$ and it worked fine

thanks a lot
best regards