MathGroup Archive 2003

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

Search the Archive

Find Elements Containing "r"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42520] Find Elements Containing "r"
  • From: "Allan de Frates" <oldwhitecar at hotmail.com>
  • Date: Sat, 12 Jul 2003 05:19:23 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

How do I find all the elements of a list that contain the letter "r" or some
other text pattern? For example, if the list is {ar1, ar2, ab1, ab2, rab,
ab3} and I wanted element matching "r", the result would be {ar1, ar2, rab}.
There has to be a simple way to do this, but I'm stumped.

Allan de Frates




  • Prev by Date: Mathematica to MIDI? UPDATE???
  • Next by Date: Contour plots for irregular data
  • Previous by thread: Mathematica to MIDI? UPDATE???
  • Next by thread: Re: Find Elements Containing "r"