I need some help with a string map command. I am trying to replace special characters with a {}. For example if the number was 12456-21 i want 1245621, 1245a47 to 124547. I can get the special characters out, but how do i set it up to get rid of the letters. I have tried A-Z, a-z, A-z, chars with no luck. I am sure their is a way to do it so i dont have a {} b {} c {}...etc. All way through alphabet. So i basically want to take out anything non-numeric. Below is my current code, any help or direction would be appreciated.
set PolicyNum [string map -nocase {- {} ? {} . {} ' {} @ {} char {}}
set PolicyNum [string map -nocase {- {} ? {} . {} ' {} @ {} char {}}