SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Extracting certain files

Last post 05-21-2008 4:52 PM by magikesh. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-20-2008 11:10 PM

    Extracting certain files

    How do I format the NameFilter expression to extract only certain files from a zip file using fastzip?  I'm looking at files that will have multiple versions stored ( i.e. report1_01012008.xls, report1_02012008.xls).  I want to pull only the report1*.xls files but not the other archived files like a report2*.xls, report3*.xls, report1*.doc, etc.  Any suggestions?

  • 05-21-2008 4:52 PM In reply to

    Re: Extracting certain files

    With further research I found Microsoft's MSDN page about Regular Expressions (Visual Studio) @ http://msdn.microsoft.com/en-us/library/2k3te2cs.aspx

    Through a little trial and error, I found this pattern (based on my posted example);  +^report1.+xls$    [ + to include this namefile, ^ to anchor to the start of the line, report1 is my first part of the search string, .+ matches at least one or more characters between the two strings, xls is the second part of the string, and $ to anchor xls to the end of the line ].

     

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.