Hide file matching a suffix using regex

Hello,

I have files like

this

  • Documents.ect

  • Documents-backup1.ect

  • Documents-backup2.ect

  • Documents-backup10.ect

I want Listary to only show the original file and hide file ending with -backup.ect

How do I set such regex filter.

-backup\d+.ect$

This code didn’t work

Bump

dead forum?

@ZackaryW Yes

Bump

Set this under the ignored priorities
-backup.*\.ect

For the sake of performance, regex rules only match at the beginning of file names (at least for the new engine). The correct regex would be: ^.*-backup\d+\.ect$

That’s wrong, at least with the current version.
My regex example works fine.


Windows 11 Home x64 Version 22H2 (OS Build 22621.2361)
Listary Pro 6.3.0.46

1 Like

You are right. I misunderstood the regex library’s API. It turns out that Rust’s regex doesn’t even support testing at a specified position. I didn’t expect them to make such a design in a performance-first language. We will probably keep this unchanged.