How could you remove all characters that are not alphabetic from a string?
What about non-alphanumeric?
Does this have to be a custom function or are there also more generalizable solutions?
How could you remove all characters that are not alphabetic from a string?
What about non-alphanumeric?
Does this have to be a custom function or are there also more generalizable solutions?
Here is another way to remove non-alphabetic characters using an
iTVF
. First, you need a pattern-based string splitter. Here is one taken from Dwain Camp's article:Now that you have a pattern-based splitter, you need to split the strings that match the pattern:
and then concatenate them back to get the desired result:
SAMPLE
Result: