Re: Finds strings in a list that begin with "A"
- To: mathgroup at smc.vnet.net
- Subject: [mg82337] Re: Finds strings in a list that begin with "A"
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 18 Oct 2007 04:45:55 -0400 (EDT)
- References: <ff4egn$d6p$1@smc.vnet.net>
Hi, lst = {"And", "Bat", "Artistic", "Cob"}; Select[lst, StringMatchQ[#, "A*"] &] ?? Regards Jens tomfabtastic at hotmail.com wrote: > Hello, > > I am trying to look through a list of strings and return all strings > that start with an "A". > > For example, my list could be : > > {"And", "Bat", "Artistic", "Cob"} so I want to return {"And", > "Artistic"}. > > Any ideas ? > > Thanks, > Tom > >