Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Extracting elements of a list of strings' topicStudent Support Forum > General > Archives > "Extracting elements of a list of strings"

Next Comment >Help
Author Comment/Response
Eustace
08/11/06 12:08pm

Hello,

I need help extracting elements of a list of strings that contain a particular pattern into another list of strings. e.g.

alist = {"a_boy","b_girl","c_boy","d_boy","e_girl"}

how do I get blist from alist such that

blist = {"a_boy","c_boy","d_boy"}

where the string pattern being matched is "boy". Help much appreciated. -eustace

URL: ,

Thread 'Extracting elements of a list of strings' is now CLOSED
Author Date Posted
Extracting elements of a list of strings Eustace 08/11/06 12:08pm
Re: Extracting elements of a list of strings yehuida ben-... 08/13/06 06:00am
Re: Extracting elements of a list of strings Eustace 08/13/06 5:44pm
Next Comment >Help