I have a string in which I want to contract double spaces to single spaces.
I was trying this:
Code:
StringReplace, word, word, %A_Space%%A_Space%, %A_Space%, All
No success. So I tried
Code:
AutoTrim, Off
StringReplace, word, word, %A_Space%%A_Space%, %A_Space%, All
Still the same.
I tried
Code:
AutoTrim, Off
ds := " "
s := " "
StringReplace, word, word, %ds%, %s%, All
and still no success.
Then I tried
Code:
StringReplace, word, word, aa, a, All
and it worked right away. So what's wrong with those spaces? How do I have to do it?