Backup directory only, without content using regular expressions

We are trying to use regular expressions for set of filter files for the CLI version. We are unable (due to lack of knowledge?!) to include a directory without contained files or subdirectories.

We tried:

e:Backup/.+

thinking that this will not match the directory name itself

i:Backup/
e:Backup/.*

resembling the way we would use the non regex syntax.

Any more ideas? At the moment we just mix both regex and non regex syntax…

Try this:

i:Backup/
e:Backup/?*

(the order matters)

Thanks, that gives:

Invalid RegExp: Backup/?* – error parsing regexp: invalid nested repetition operator: ?*

If You meant e:Backup/.* that did not work either…

Sorry, my fault, I was thinking about wildcard syntax:

+Backup/
-Backup/?*

(I hate regex…)

3 Likes