Re: Trying to remove item from list of filenames
- To: mathgroup at smc.vnet.net
- Subject: [mg109706] Re: Trying to remove item from list of filenames
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Thu, 13 May 2010 07:23:10 -0400 (EDT)
On 5/12/10 at 7:35 AM, ckoehler5 at wi.rr.com (Charles J. Koehler) wrote: >I read in a list of filenames from a directory, using wildcards to >capture all the files I want to process. However, a few files make >it into the list that I don't want. I these files have extra string >of characters, that I should be able to remove using a regular >expression and the appropriate Mathematica function. Any thoughts? You can likely do what you want with a combination of Cases, StringMathchQ and RegularExpression. But in order for me to be any more specific, you need to provide more details.