Sometimes I copy text, But when I copy it, It also copies Space after the last letter of the word or sentence and sometimes before the first letter,
This is the code that I came up with,
Code: Select all
F1::
Clipboard := RegexReplace(Clipboard, " ", "")
Return
Esc::ExitApp
In my case, I just want to delete the Spaces If only it existed before the beginning of the first letter or after the end of the last letter.
This might be the best way to achieve this goal is use RegExReplace() but unfortunately I have no experience with this.
Thanks in advance...