I often have to copy/paste a numeric string but sometimes there are dots or spaces in them. I need to write a script that edits my clipboard string:
- It needs to remove all the dots
- It needs to remove all the spaces/EOF's
- It needs to put all the remaining numbers together and put it back in the clipboard
I'm no scripting king, I've found some useful code but I have no idea how to put all that together.
Example:
- The string " 12345.67" is in my clipboard.
- I need a script that changes this to "1234567" and puts it right back in the clipboard.