September 24, 2019 at 1:48 pm #26204
Mr KT
Participant
Hi harryray,
This matches all ASCII characters (from space to tilde – not my solution)
[ -~]
By negating this, it now matches all NON-ASCII characters
[^ -~]
>>but what I’m after is something that will give me the choice of the characters to strip out as well as the non printable characters
You should just be able to use alternation to add all the additional characters to strip out
e.g. To strip out all NON-ASCII characters and all vowels:
[^ -~]|[aeiou]