MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.



  • Prev by Date: innerApply[{f, g}, {{a, b}, {c, d}}] = {f[a, b], g[c, d]} ?
  • Next by Date: Re: Trying to remove item from list of filenames
  • Previous by thread: Re: Trying to remove item from list of filenames
  • Next by thread: Re: Trying to remove item from list of filenames