s/ +( )/ $1/g
As mentioned by cog, be mindful that it must be with the semicolon.
In reply to Re: Replace a word in a line except for the last char of the word?
by dmorelli
in thread Replace a word in a line except for the last char of the word?
by Ronnie Doorzon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |