Code: Select all
[0-9]{,4}(\([0-9]\))?\.jpg

Only when I replace the {,4} part with {0,4} it works. But AFAIK this is a valid regex...
Moderators: Hacker, petermad, Stefan2, white
Code: Select all
[0-9]{,4}(\([0-9]\))?\.jpg
You should also take into account that it'll return files likeThany wrote:This one should return files beginning with at most 4 digits, following by an optional digit between brackets. And it has the jpg extension.