All,
I just bumped in to this and can't think of an optimal solution. Please give me some starting point.
We have the replace function which replaces char(s) from a string with something else. But in this case I need all the chars that I specify to be kept, everything else to be wiped off from the string. Obviously the replace function will work, if I can create a set which does not contain all the wanted chars, then loop through to remove them. But is there any other way you can think of to keep required chars and remove *ANY* other?
------------------------------------------
The faulty interface lies between the chair and the keyboard.
I just bumped in to this and can't think of an optimal solution. Please give me some starting point.
We have the replace function which replaces char(s) from a string with something else. But in this case I need all the chars that I specify to be kept, everything else to be wiped off from the string. Obviously the replace function will work, if I can create a set which does not contain all the wanted chars, then loop through to remove them. But is there any other way you can think of to keep required chars and remove *ANY* other?
------------------------------------------
The faulty interface lies between the chair and the keyboard.