Hi, I have been trying to figure out how to subtract one string from another to no avail.
This is NOT simple checking the strings for an incorrect sequence which can be done using string.replaceAll(...)
However, the thing I need to do is take any random string and remove from it any random number of letters.
string s1 = computerscience
string s2 = tpu
string s3 = cpu
how can I do it so that s1-s2 = comerscience or s1-s3 = omterscience
Basically this is just removing the characters of 1 string from that of another. (But not removing all instances of letter, just as many as there are in the smaller string)
Can anybody help?