Still support the existing glob-like syntax, but add regex as well. My recommendation would be to simply add a flag that allows the insertion of regex. While I use FreeFileSync and it's great software, unfortunately the limited include/exclude filtering has made it impossible for me to use for anything complex. As far as I can tell no one is having issues with having to escape everything :) However most software that I use supports the use of regex for file and file path matching, and it's fine. * matches anything in the current directory. ** is the standard in many glob implementations (and glob-like shells) so would be the logical thing to use I'd think. In the regex based ones always use a forward slash (/) as a folder separator (also in a Windows environment), use the backslash (\) as the regex escape character, and live with the fact that characters that have a special meaning in regex need to be escaped when used in normal file or folder definitions.īut at least as relevant: it would require the FFS author to develop and maintain two separate Filter definition approaches. The most feasible option then would be to give the user the option to choose between either the existing Filter definitions or regex based ones. And unfortunately the standard regex escape character, the backslash (\), is already used in the existing Filter definitions. However, even more than a single "new" wildcard character, it creates the need for escaping regex characters that may also be part of existing file- or folder-names (or vice-versa). It may help overcome many of the present limitations, and the need for using multiple left-right pairs (as per the 1st example). Then better use a "new"/different wildcard character (than *) that is less eager.Īs communicated before, also I would love to see regex support in the Include and Exclude Filters. Modifying an existing, established convention is generally a bad idea, because it may affect the behavior of existing saved syncs.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |