in reply to Remove blank space during find/replace

As jethro says, show us yer RE. Most likely you have an embedded space in it.
But: are you sure the extra output is a space? Could it be that you are trying to display an unprintable character? Have you tried running the script on the command-line rather than to a browser? You might then get to see the real output, particularly if you pipe it through a utility like od(1).
  • Comment on Re: Remove blank space during find/replace