I like to delete the sublist that have the second element "" (or any other you can set as "-1" or "A")
In the next example, I would like to erase the first and third sublist. How can I do this with DeleteCases
or a similar way?. Thinking in larger lists.
a = {
{"A", "", 0, 23},
{"B", "ber", 0, 23},
{"C", "", 0, 23},
{"D", "der", 0, 23},
{"E", "eer", 0, 23}
}
DeleteCases[a, a[[i, 2]] == ""]
====================== SOLVED in the comment of J.M.
DeleteCases[a, {_, "", __}]
. $\endgroup$