the backup monkey
i'm not fluent in regex.. any way to get some examples? I'd love to have an exclude list, like every file that starts with a . for example.Or a search example that says every file BUT the following...Is that possible? Great program BTW, thanks.
John,You can find a tutorial on Java regex's here: http://java.sun.com/docs/books/tutorial/essential/regex/. It's quite short - you can skip the parts on how to use the classes.Here's a regular expression that I think should get every file that doesn't start with a .: ^[^\.].*
That will also exclude files that are in folders that start with ., I believe. Test it out.
Thanks! That seems to work by finding all files that don't start with a . but does include the files within directories that start with a .regex is beyond me, so I don't even know where to start to tell it to exclude the contents of directories that start with a . and files that start with a .thanks for the help though...
Post a Comment