httrack icon indicating copy to clipboard operation
httrack copied to clipboard

Feature Request: Limiting Wild cards

Open mpheyse opened this issue 7 years ago • 0 comments

 In most command shells the wildcards are * and ?

Where * is 0 or more, and ? is Just one

Currently I can match a numeral by the filter [0-9], and a three digit number by [0-9][0-9][0-9].

The problem is that according to the documentation *[0-9] will match any number of digits. (2 75 1254254 or 00005) all would match

I suggest we add the following context. *[?SpecialWildCard] where *[?0-9] would only match 1 digit. Additionally the special case [?] would mean jut one of any character.

It will not break any exiting filters as ?xxx is invalid currently (would have to be ?,xxx) and no paths or file names can have a ? in them

This could be expanded to *[X?SpecialWildCard] where X is the required number of repeats, where [3?0-9] would match any three digit number, or the first three digits of a larger number. (would be short version of [?0-9][?0-9][?0-9] )

mpheyse avatar Sep 05 '17 02:09 mpheyse