svnvisualsvn

(Visual)SVN ignore files by Regex


I need to exclude files with the following pattern:

ProjectFoo.Data[0-9]{14}.lgp

How can I use RegEx for (Visual)SVN ignore list?


Solution

  • The subversion ignore list doesn't support regular expressions. They are implemented as glob/file patterns.

    These patterns don't support the {14} repeat construct.

    The pattern

    ProjectFoo.Data[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].lgp
    

    should do what you ask, but I would recommend using something like ProjectFoo.Data[0-9]*.lgp as that would be 'good enough'.