Regex help needed

Hello,
I am not an expert in Regex so I could need some help.
I would like to let DO show filenames within a certain number range, e.g. 000-999, so Do should list:

img_120
img_080 etc

In another program I use, die Regex for this is e.g.:

\Aimg_[0-9]{3}
which means, list all filenames that start with img_ and within a file range (three digit number) between 000-999

Can this be achieved in DO too?

Set HIDEFILTERFILENAME ~(img_*) would at least list all files that start with img_ but I just cannot figure out how to set the number range.

Thanks for any help!

Use this:

Set SHOWFILTERFILENAME img_[0-9][0-9][0-9]

Note that {3} doesn't work with regular expressions in Opus (not yet anyway; unfortunately there are about 50 million "flavours" of regular expressions and each program/language can do things slightly differently), but also that HIDEFILTERFILENAME and SHOWFILTERFILENAME don't use regular expressions at all.

While parts of Opus (including other filtering methods) support regexps, the simple filters set by HIDEFILTERFILENAME and SHOWFILTERFILENAME use the Pattern Matching Syntax (see the appendix at the back of the manual) which has some features similar to regexps but is something more simple.

(That said, in this case the pattern is valid for both regular expressions and pattern matching. It's just something to be aware of if you want to do anything else.)

BTW, this will only match files literally called things like "img_120" and will hide files called things like "img_120.jpg" or similar. If you wanted to ignore the file extension, the pattern would be slightly different.