Feature Request: more flexible include-/excludepattern

Discuss new features and functions
Posts: 1
Joined: 17 Jan 2024

joeuser

It would be nice to have more flexible patterns for in- and excludes.
As they are available on the comandline like [0-9] or [aDR] or [a-z] to match digits concrete characters or alle lowercase characters.
This are only examples.

*[0-9].* should match files like 'foo3.xxx', 'bar99.txt'
*[0-9][0-9].* should only match files like 'foo23.xxx', 'bar99.txt'

Usually this patterns are supported by the underlying operating system hence it should not be complicated to implement this by passing the patterns to the appropriate OS function.

Next step could be the use of regexp pattern for include-/exclude pattern.
The challenge is that file system wildcards and regexp are very different in their syntax.
It may be necessary to implement a switch(checkbox) to tell FreeFileSync which pattern style(syntax) it should look for.
User avatar
Posts: 2286
Joined: 22 Aug 2012

Plerry

The use of RegEx like behavior in the FFS In- and Exclude Filter has been suggested before (see e.g. here). The counter arguments listed there do also still apply. Apart from the addition of the column character ":", filter rule definitions have not changed since then.