Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <vreo28$c123$1@dont-email.me>
Deutsch   English   Français   Italiano  
<vreo28$c123$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Harald Oehlmann <wortkarg3@yahoo.com>
Newsgroups: comp.lang.tcl
Subject: Re: Remove new line char
Date: Wed, 19 Mar 2025 16:32:25 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <vreo28$c123$1@dont-email.me>
References: <99c3a67de883d847a088f8158aea9998@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 19 Mar 2025 16:32:25 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2bd1d7fdfe0559c80654e7b8dced9b50";
	logging-data="394307"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/s/rxioyevuf56sIOUhfs8"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:WX3V+//2HB+s8/6MowFl8zIimlY=
In-Reply-To: <99c3a67de883d847a088f8158aea9998@www.novabbs.com>
Content-Language: en-GB
Bytes: 1507

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 {}" $text

Harald