My clipboard content will be numbers and punctuation, and I want to paste the numbers only. The numbers that appear in the following formats:
12/345,678
or
23/456-789
I need to copy the numbers then paste without the / or , or -
I came up with a solution that works, and I paste with the hot key trigger command-J rather than usual command-V. In these examples, the results are 12345678 and 23456789 when I use my command-J Macro, which is what I want.
My solution seems inelegant. Is there a more succinct way?
Just an FYI for your regex, \d matches any digit, and \D matches any non-digit. So your search regex could also be \D to remove everything that is not a digit.
The available characters are documented in the ICU Documentation (liked to from the Help menu in Keyboard Maestro).