Selecting elements from lists based on string pattern
1
$begingroup$
I have a list: lis = {{"abc", 1, 2}, {"cde", 3, 4}, {"fgbc", 5, 6}} I would like to select list items that have first elements that end in the string "bc" to give: res = {{1,2},{5,6}} This is a variant on this question which has to do with strings only. Thank you as always for suggestions.
list-manipulation string-manipulation
share | improve this question
asked 3 hours ago
Suite401 Suite401
988 3 12
$endgroup$
...