So I've created a number format generator which will take human telephone numbers, and apply the appropriate format following the HSCIC Rules and Regulations, one issue I'm having is number validation.
For instance, I get to a step, just after removing all whitespace, and I'd like to check the number once more, removing every character except: Numbers: 0 - 9 Letters: E, X, T - case insensitive Special: +, :
I've looked online but I can't find a way to only keep these few characters. All help is appreciated!