I use the lines below borrowed from forums to reomve % sign in the end of MYvar and the first line to remove Space (First character). This works but how to make just one line of RegEx instead of two?
Code: Select all
Myvar := Clipboard
Myvar := " 50%" ; For example
Myvar := RegExReplace(Myvar, "\s")
Myvar := RegExReplace(Myvar, "%$" )
MsgBox, No space=%Myvar%=No sign