Quickfilter using regex

I want a toolbar button that filters current folder for:
*part1.rar
*part01.rar
*part001.rar

I've tried ■■■■■■■, perplexity, and copilot everything they suggested filtered out everything:

Set QUICKFILTER="re:.*part0{0,2}1\.rar"
Set QUICKFILTER="re:part0?0?1\.rar"
Set QUICKFILTER="re:.*\.part0*1\.rar$"
Set QUICKFILTER="re:.*part0*1\.[^.]+$"
Set QUICKFILTER="re:.*part0*1\.rar$"

If the filter bar is in already wildcard mode (it usually is):

Set QUICKFILTER="*.part#01.rar"

If it's in regex mode (it usually isn't, unless you've configured it to be):

Set QUICKFILTER=".*\.part0*1\.rar$"

A more precise regex (at most two zeros):

Set QUICKFILTER=".*\.part0{0,2}1\.rar$"

Does RAR have a rule that there can't be more than 999 parts?

Once the next version is out, you'll also be able to use either of these, without having to worry about which mode the filter bar is currently in:

Set QUICKFILTER="*.part#01.rar" QUICKFILTERFLAGS=regexpoff

Or

Set QUICKFILTER=".*\.part0*1\.rar" QUICKFILTERFLAGS=regexpon

(Those won't work in the current version, as the QUICKFILTERFLAGS=regexp... part has a side-effect of clearing the pattern. We're changing it so it leaves the pattern as-is.)

1 Like

That worked! Thank you!