add capability to use regular expressions in the ignore.conf files
it would be nice to be able to specify patterns to include/exclude in the ignore.conf file using regular expressions.
![](https://secure.gravatar.com/avatar/3ad9ddc03271201443d77f142ab337ff?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
The requested feature was already present in our software. Please review the answer attached by one of our developers for further details.
Thank you for your interest in PlasticSCM!
-
Miguel González commented
Hi C G,
Thanks for your interest in PlasticSCM :-)
We have this feature already integrated in our latest 5.0 release (5.0.44.533 at the time of writing). :-)
You have two options: using full-featured regular expressions or an extended notation for file paths.
The former requires expressions to be enclosed inside start/end line characters: "^...$". This format allows you to use the standard regular expression syntax.
The latter only allows special strings: "**" (strings of 0+ characters), "*" (string of 0+ non-directory-separator characters) and "?" (a single character, no matter which one). This means that the rest of the rule must use path-valid characters.For instance, the rule ^/home/user/workspace-one/[0-9][0-9][a-z][a-z]*/.*/.*\.txt$ would match the path /03matchme/doc/new/main.txt inside workspace 'workspace-one', but it wouldn't match neither /001critical/log/error/20140227.txt inside the same workspace, nor anything under a different workspace.
The rule '/main/**/doc*/log.txt' would match /main/dir1/dir2/documentation/log.txt and /main/dir/doc/log.txt, but it wouldn't match /main/dir1/dir2/doc/sublog/log.txt (please note the difference between "**" and "*").
Finally, you can begin each rule with the '!' character to reverse its matches, allowing you to set include/exclude patterns.
We hope this information will answer to any questions you may had, but don't hesitate to contact us if you would like something to be clarified. :-D
Thanks!
Miguel