Exclude number from ignore range

Hey there,

Say I have files with the following structure

nameYYYYmmdd

I want to ignore all files up to November but want to sync other files and files in the future as well.

So far I have the following

(?i)name2021[0-1][0-9]*

// this will sync all file

How do I go about excluding numbers from [0-9] range?

Glob patterns aren’t that smart. But you can use more than one. If you want to ignore January through October and sync November & December,

!name202111*
!name202112*
name2021*

Or if you want to stick to positive patterns,

name202110*
name20210*
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.