So I have a string of the English alphabet for example. But I don't know the alphabet very well but I do know that it starts with "abc" and that it ends in "xyz". I want to remove letters "b" to "x". I want to do something like
str = str.replace("bc*x",""); or
how can I remove something like everything except for "efg" from "abcdefghijklm" without know what anything is except for "ef"?