Filtering regex incrementing digits query

Hi,

I need some simple regex filtering help please, I've read https://rclone.org/filtering/ and the link to the go regexp docs at https://golang.org/pkg/regexp/syntax/ but struggling with digits..

I'm looking to filter on files labeled YYYYMMDD, so lets say I want all files from the 8th onwards, ie. 202006{08,09,10,11,12,13,14}*

The above syntax works fine but I'm hoping for a syntax that would,

  • Handle the zero padding
  • Can increment indefinitely without specifying every day for the rest of the month
  • ie. something like 202006{08<}*

Any ideas?

I'd do it in multiple filters. i don't think it's sophisticated enough to do exactly what you want.

--include=20206{08,09}* --include=202006[1-3][0-9]*

1 Like

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