in reply to Re: Replace a word in a line except for the last char of the word?
in thread Replace a word in a line except for the last char of the word?

Allow me to explain :-)

(?=) matches only if what's between the "=" and the ")" is found to the right of the expression. This means the expression matches a space *only* if it is followed by another space.

  • Comment on Re^2: Replace a word in a line except for the last char of the word?
  • Download Code