From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Roehler Newsgroups: gmane.emacs.help Subject: reduce repeated backslashes Date: Mon, 15 Feb 2010 09:40:13 +0100 Message-ID: <4B79086D.7040604@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1266223142 11672 80.91.229.12 (15 Feb 2010 08:39:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Feb 2010 08:39:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 15 09:39:00 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NgwTq-0006Bw-IA for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Feb 2010 09:38:58 +0100 Original-Received: from localhost ([127.0.0.1]:46930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NgwTp-0005BH-OW for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Feb 2010 03:38:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NgwTR-0005B5-Rr for help-gnu-emacs@gnu.org; Mon, 15 Feb 2010 03:38:33 -0500 Original-Received: from [140.186.70.92] (port=34279 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NgwTQ-0005AH-52 for help-gnu-emacs@gnu.org; Mon, 15 Feb 2010 03:38:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NgwTP-000286-GD for help-gnu-emacs@gnu.org; Mon, 15 Feb 2010 03:38:32 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.171]:55135) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgwTO-00027m-U1 for help-gnu-emacs@gnu.org; Mon, 15 Feb 2010 03:38:31 -0500 Original-Received: from [192.168.178.27] (p54BE942B.dip0.t-ipconnect.de [84.190.148.43]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0M5cCK-1Ns9nu4AFk-00xS7C; Mon, 15 Feb 2010 09:38:27 +0100 User-Agent: Thunderbird 2.0.0.19 (X11/20081227) X-Provags-ID: V01U2FsdGVkX1/WT8XfV/U102DVljahKrg8ynhL+w4YiulyOrZ FEv/xFCiWpsLGyC8SU9eV/qdJIM5eUHE7kJRg7oFkpbmC/O1Gu ojCbg9iM+DFUuAADK8OJFbHmdZaXTWLc65JZTjLnig= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71865 Archived-At: Hi, don't know how to replace/reduce repeated backslashes from inside a string. Let's assume "abcdef\\\\" Tried (replace-regexp-in-string "\\\\" (number-to-string ?\\) "abcdef\\\\" nil t) which reduces so far, but shows chars as it's numeric value: --> "abcdef9292" Any help? Thanks! Andreas -- https://code.launchpad.net/~a-roehler/python-mode https://code.launchpad.net/s-x-emacs-werkstatt/