Regex help needed

What is the problem you are having with rclone?

I am trying to figure out how to list files containing an exact pattern and cannot figure out the regex for it

My goal is to move files containing
S01E01 so like this:
S##E##

Is there a way to say Digit, ie Single digit not "some" digits?

I am really horrible with regex :frowning:

Run the command 'rclone version' and share the full output of the command.

rclone v1.65.2
- os/version: Microsoft Windows Server 2022 Datacenter Evaluation 21H2 (64 bit)
- os/kernel: 10.0.20348.2402 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

I tried as many variations as I could think of

rclone -vP --include=/*{{s\d\d\e\d\d}}* ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include=/*{{\d\d\e\d\d}}* ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include=/*{{\d\d\e\d\d\}}* ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include=/*{{\d+\.\d+\}}* ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include=(*{{\d+\.\d+\}}*) ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include=/*{{\d+\.\d+\}}*/** ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include=/*{{\d+\.\d+\}}* ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include=*{{\d\d\e\d\d\}}* ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include=*{{\d\d\e\d\d\}}* ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include={\d\d\/e\d\d\.d} ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include={\d\d\/e\d\d\} ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include=*{{\d\d\\e\d\d\.d}} ls  Transfers-06:/07/B/ --config=drives3.conf
rclone -vP --include=*{{\d\d\\e\d\d\.}} ls  Transfers-06:/07/B/ --config=drives3.conf

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[REMOTE]
type = drive
scope = drive
service_account_file = sa\3457.json
team_drive = XXX
server_side_across_configs = true

--include=*S\d\dE\d\d*

Thank You very much! Works perfectly !

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