I want to do something like this:
String myString="123EDCBAabcde";
myString=myString.passValidChars("ABCDE");
now myString is "EDCBA"
Is there already a function which only passes the valid characters and removes the others? If not what is the best way to do this?
Best Regards.
1 Answer