Sujet : Re: Remove new line char
De : wortkarg3 (at) *nospam* yahoo.com (Harald Oehlmann)
Groupes : comp.lang.tclDate : 19. Mar 2025, 16:32:25
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vreo28$c123$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
Am 19.03.2025 um 12:47 schrieb alexandru:
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
--
what about:string map "\n {} \r {}" $textHarald