Hey,
I would like to replace every character in a string that is not a-z A-Z 0-9 or ' with a space. Currently I am trying to approach it this way:
Which would require dozens of those statements, one for each character that I don't want. Is there anyway to have the program check the string and convert any character that is not a-zA-Z' with a space, instead of writing individual replace statements?Code:replace(ss.begin(), ss.end(), '!', ' ');