Using FileSystem.GetFiles and regular expression ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • graphicsxp

    #1

    Using FileSystem.GetFiles and regular expression ?

    Hi,
    I need to find recursively all the files which have extension .mdb so I
    did that:

    files = My.Computer.Fil eSystem.GetFile s("C:\Databases ",
    FileIO.SearchOp tion.SearchAllS ubDirectories, "*.mdb")

    Now I want to exclude the file which contain the strings "_Backup" or
    "basket" in the filename (and still filtering on *.mdb). I suppose I
    should use regular expressions, but I can't figure out what the
    expression should look like. Can you help ?

    Thanks

Working...