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