So, for example I have
StringReplace[
{"abc", "abd", "abx", "abf", "abe", "abg", "abh", "abi", "acb", "acd"},
{"bd" -> "", "bg" -> ""}]
which gives
{"abc", "a", "abx", "abf", "abe", "a", "abh", "abi", "acb", "acd"},
but I want the new list to be
{"abc", "abx", "abf", "abe", "abh", "abi", "acb", "acd"}.
A solution is alright if it works for the fact that I am starting with a list of sub-lists with the same length and deleting everything else. I tried using an if statement with by splitting into characters and using delete, but for some reason this didn't work.
DeleteCases[{"abc", "abd", "abx", "abf", "abe", "abg", "abh", "abi", "acb", "acd"}, _?(StringMatchQ[#, "*bd" | "*bg"] &)]? $\endgroup$