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: Thu, 20 Mar 2025 09:25:40 +0000 Organization: novaBBS Message-ID: 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="970717"; mail-complaints-to="usenet@i2pn2.org"; posting-account="l1iAmVox1ke+zLagusfZ24oI+I+AR96kYETQ9qXKFjg"; User-Agent: Rocksolid Light X-Rslight-Site: $2y$10$H67sbb7WKM9QR7tr1xI0Fe9jccsPzZ9SjWEuKxxsXcSrL.PmkolzC X-Rslight-Posting-User: 3217083f22f6079e036efa4232d5f9f8b9be6b49 X-Spam-Checker-Version: SpamAssassin 4.0.0 On Wed, 19 Mar 2025 20:47:00 +0000, Rich wrote: > Harold suggested: > >> string map "\n {} \r {}" $text > > This deletes every occurrence of \n and every occurrence of \r, > anywhere in the string. > > Which is very different. Of course, in general. In my case it does the same, since there is only one new line char at the end. --