in reply to whitespaces replace with tabs - help needed...

Are you sure you don't want to replace whitespace with tabs so that the resulting text looks the same on a device that supports tabs?

This would require a little more calculation than just replacing every single whitespace character with a single tab character, but is certainly something that folks here could help with.

Also, you should realize that \s matches newlines. This may not be what you intended.

-- Eric Hammond

  • Comment on Re: whitespaces replace with tabs - help needed...