Consider the following:
data={"AB","CD","AF"};
Now I would like to delete all String from data which starts with "A".
Result: {"CD"}
|
Consider the following:
Now I would like to delete all String from Result: |
|||
|
I am not sure how to do this using
which has the desired result. Edit Actually, you can also use
|
||||
|
|
|
Here is another one:
|
|||||||||
|
EDIT: As noted in YvesKlett's comment, since
or
|
|||||||||||
|
|
Another method using
|
|||
|
|
|
A possibly dangerous version that works for your example:
uh, and adding variety to the
|
|||||||||
|
|
Here's yet another solution that has not been mentioned using
|
|||
|
|
DeleteDuplicates[data,First@Characters[#]=="A"]but abviously this is not working. – John Apr 19 '12 at 15:07