I'm trying to figure out how to purge a subset of variables of all characters that are not 1234567890 and abc....xyz. I want to keep only those 36 characters.
Over time, the various characters beyond those 36 basics in the strings of interest may change, and I'd like to write code that adapts to that issue. I've used charlist, but I believe it requires me to specify which characters I want to drop, not those that I want to retain. I've also used cleanvars but encountered a similar problem.
Thank you.
Over time, the various characters beyond those 36 basics in the strings of interest may change, and I'd like to write code that adapts to that issue. I've used charlist, but I believe it requires me to specify which characters I want to drop, not those that I want to retain. I've also used cleanvars but encountered a similar problem.
Thank you.
Comment