in reply to Re: Regular Expressions: Removing 'only' single spaces from a string
in thread Regular Expressions: Removing 'only' single spaces from a string

It will remove the last space from any run of spaces. That is why you need both lookahead and lookbehind to make it work properly.

Caution: Contents may have been coded under pressure.
  • Comment on Re^2: Regular Expressions: Removing 'only' single spaces from a string