Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!news.quux.org!news.nk.ca!rocksolid2!i2pn2.org!.POSTED!not-for-mail From: alexandru.dadalau@meshparts.de (alexandru) Newsgroups: comp.lang.tcl Subject: Re: Remove new line char Date: Wed, 19 Mar 2025 17:44:39 +0000 Organization: novaBBS Message-ID: <672063d3a446d955d7ba04642c3623f2@www.novabbs.com> References: <99c3a67de883d847a088f8158aea9998@www.novabbs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="878214"; mail-complaints-to="usenet@i2pn2.org"; posting-account="l1iAmVox1ke+zLagusfZ24oI+I+AR96kYETQ9qXKFjg"; User-Agent: Rocksolid Light X-Rslight-Site: $2y$10$UiN1GV/1282ZHKSTl.WmMuD5AjfFqsoZhoVZumpitO4sdQmzBYJPq X-Rslight-Posting-User: 3217083f22f6079e036efa4232d5f9f8b9be6b49 X-Spam-Checker-Version: SpamAssassin 4.0.0 Thanks Ralf. I tried: format %x [scan [string index $text end] %c] but it only identifies 0 as last char. both set text [regsub {[[:space:]]+$} $text ""] and set text [regsub {[\s]+$} $text ""] made no difference... --