From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: steve-humphreys@gmx.com Newsgroups: gmane.emacs.help Subject: [External] : Use the characters "+" and "-" in regular expressions Date: Thu, 20 May 2021 18:34:20 +0200 Message-ID: References: <20210520082613.GC1127@tuxteam.de> <20210520095603.GD1127@tuxteam.de> <20210520102244.GE1127@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26297"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu.org" , Jean Louis To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 20 18:35:40 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ljle7-0006dr-LK for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 18:35:39 +0200 Original-Received: from localhost ([::1]:39774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljle6-0000jx-Om for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 12:35:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljldR-0000jX-32 for help-gnu-emacs@gnu.org; Thu, 20 May 2021 12:34:57 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:38991) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljldP-0007Dt-6X for help-gnu-emacs@gnu.org; Thu, 20 May 2021 12:34:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621528460; bh=WKdRyY+cusH8sv0l7My4PEEoVQeh64cNXfspheKshnM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=MB048Ubf4CiaYGv93uFHXrYtGBruk6kz8EGOocaowjs/RC+eH7Mq8KvkvHuAJjc/4 00pErMqwkVzuteIcx+0iI/jZ3ZcTzlpndNYejJ2en/gDRUUM/qgwb61gBt2ALPPEgG lb/rkw/g8Dvi+nePtP9wcjwFFsFw0sp7BCckbPTM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs16.server.lan [172.19.170.184]) (via HTTP); Thu, 20 May 2021 18:34:20 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:XPYRhsHXLYtvX5dLoSEy0rDlXutrmHM6+SrzxN9SBF0xgh07lAbGH3PTaVXuvGO+OVSZO 3HN3LD1BDwu/wDFHuOmYBWFsM9hmDwKqHIREVjtmiW5dSuG82n87a/QoBNau5/ZavOjUmTV8d8z8 U0Q+xswv1nHMX5wh2Dc/q/gm2Vqcqe4AjK9rKW/auNR/yB/sQGRcLKozDHi6Mia8fSbEwXVtKoRR EzmDwNSKY5s+5+Q6Tq3YdBAepzPOrp+ve88Y2goBvNiWyLkg2r+Wc6EmUkC7sV4b4bgHxRNENBQF /w= X-UI-Out-Filterresults: notjunk:1;V03:K0:RbDEs06pWVM=:PSHMnR9I/EI7ffWY2bifDF HLYpyyVvFORAq7qhcqHQa4rH2V39cvtIFNDdQAdy71U1ixt7JQxBuq6HSX9uzzH1Tpi2sWDi6 8QHBnyNkFs7FG214d5otZcsFZSehGw1QzTnjsqUSBA5mCggbBQ+oDCXxtUKioBFtbFRdGthUr sR5H2xh3MQEz6YoT9sR69r+/WY6VBDhHhqptSvpQViuwRO+y8SYwPVKzuNVnmrV/HJWIo5HTw 9wz9+Vzb/OIn8zyhNFQ5FnGWZUIld25Ra4+Vc/OdwjltgBJk3pKj1FK2x3B/ZcgGXZZ8+3mFa qKksQUtSJCzrDZlfCXKtELq7PKtg8zbdt6fQtrkJS6Ahg/rBt3+wDJtEaJ9Q0ONo/q5J4e9IK 3FmwvZhN2j3v/+d4bny9uXJBI1hKupngXQuQMJB6Y9MogN+h/PNnCP+z9pBuF88hqLwxlRtRV eHQhgcTC2CbVMINtCthpi6FaWlxEwYzhwR0+5KFN7PZsVjf1Yy00S5F4IJezXxrxLfesbZ+yK FgQ3VCEIzG6M9cjKPKP+G0Eq6a59VlUezhPqgj9iBL1eCoQbk7RP9a18nNzfAp8FWdBiHcQxU MVKp2YEZRJixdsD+lpcKYW5Ie7Kz3EgMt9qfsHNV5cEdqEJCoAZSx3rysQ8vNHqOQrNH6hIV6 7/uNMFgf5hOIAglkm0GTVfLUu9uwBgCjDeYpLCdz7+JPixW6mfelzNnn22oMaBcVnOD0QSfqa MMXJvg8gvyQqgCiM1fsbUKFPkrBxrSnNomdDLmjKvRaMLNGxap1OC82TzMbJ1OTOwkbrWYwe Received-SPF: pass client-ip=212.227.17.22; envelope-from=steve-humphreys@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129980 Archived-At: > Sent: Friday, May 21, 2021 at 4:24 AM > From: "Yuri Khan" > To: steve-humphreys@gmx.com > Cc: "Jean Louis" , "help-gnu-emacs@gnu.org" > Subject: Re: [External] : Use the characters "+" and "-" in regular expr= essions > > On Thu, 20 May 2021 at 21:50, wrote: > > > I have settled with > > > > (string-match "^[:blank:]*$" s) > > > > This would match only strings with spaces, not sentences with spaces. = What do you think? > > No, that will match lines consisting of colons and letters a, b, k, l, > and n. To use a named character class, you need double brackets. Like this then (string-match "^[[:blank:]]*$" s)