Sujet : Re: Remove new line char
De : user153 (at) *nospam* newsgrouper.org.invalid (Arjen)
Groupes : comp.lang.tclDate : 19. Mar 2025, 16:20:09
Autres entêtes
Message-ID : <1742397609-153@newsgrouper.org>
References : 1
User-Agent : Newsgrouper/0.7.1
alexandru.dadalau@meshparts.de (alexandru) posted:
I'm accessing the Windows clipboard using twapi.
When the text in the clipboard was copied from an MS Excel cell, then
text contains some new line char that I could not identify and thus
unable to remove it using
regsub {[\r\n]+$} $text ""
What other way are there besides "string trim" to remove new line chars?
Many thanks
Alexandru
--
These applications may insert all manner of invisible characters. Yesterday,a colleague copied some source code from a PowerPoint presentation and that turned out to be riddled with invisible characters that in an editor showed up as "Â".
So it goes, to quote Kurt Vonnegut.