Could you implement a non-greedy matching? I want to copy 01* files e.g only the 1st in this example
\foo\01 myFolder\01 myFile.txt
\foo\01 myFolder\other File.txt
If I include *\01* it matches the folder also so it copies all the files
If I add an exclude *\01*\ to exclude the folder only it matches again all, and copies nothing
A solution (I think) would be a non-greedy modifier (as in Perl is the "?" ) https://perldoc.perl.org/perlre
or something like this https://docs.syncthing.net/users/ignoring.html where an Asterisk (*) matches
any character but not the folder separator while Double asterisk (**) mathces any character including folder separators
Thanks
Greedy - non-greedy matches or differentiation between full path-filename only
- Posts: 2
- Joined: 27 Jun 2022
- Posts: 1038
- Joined: 8 May 2006
Is \01*\01* viable?
- Posts: 2
- Joined: 27 Jun 2022
No. In include list it misses my main goal the 01* files e.g. case 3
1. \foo\01 myFolder\01 myFile.txt
2. \foo\01 myFolder\other File.txt
3. \foo\other Folder\01 myFile.txt
In exclude list I would need something like \01*\?!01* i.e. exclude only case 2 (01 folder\not 01 file)
1. \foo\01 myFolder\01 myFile.txt
2. \foo\01 myFolder\other File.txt
3. \foo\other Folder\01 myFile.txt
In exclude list I would need something like \01*\?!01* i.e. exclude only case 2 (01 folder\not 01 file)
- Site Admin
- Posts: 7211
- Joined: 9 Dec 2007
Possible with FreeFileSync 11.24! viewtopic.php?t=9475#p34605
By appending ':' to the include filter, it will match files only:
By appending ':' to the include filter, it will match files only:
*\01*: