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: Re: [External] : Use the characters "+" and "-" in regular expressions Date: Thu, 20 May 2021 16:28:06 +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="973"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu.org" To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 20 16:50:34 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 1ljk0Q-000Ab2-Nj for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 16:50:34 +0200 Original-Received: from localhost ([::1]:45372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljk0P-0007uq-Li for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 10:50:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljjfI-0002eD-5L for help-gnu-emacs@gnu.org; Thu, 20 May 2021 10:28:44 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:40061) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljjfD-0000aV-AH for help-gnu-emacs@gnu.org; Thu, 20 May 2021 10:28:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621520887; bh=uYYbI0rj4oJlGUAdWRRAONofwBTluz1QCyKmmy062EY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=KgkXue3NtMHKZiv/e+WOiyXej7JgbbR279XapUILTxrC0OSwPsL0Zlm0hjgNoLC+v 1Ou1ZLqnq5JzaxPvWVzz68N9rqeYno4guotVWE4JSc7lvFjA0Ui7DAI+T54C+cmZqw sXQvCJQwuljMTBTIive6Z4NcqjywlHBzJp6MGmRI= 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 16:28:06 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:WR6Qf1T7IEk/A5MlRaFIxawQhdG3qnosmWCTG8A1qz3HQ9RYLW+9OfgkTYA2sdXpGAL+T bOmAjgAWPC8xRrFHbcybyEmRBg892iOetFDJ0L9aK0A1IV7fCkQTy1FT1nbWCC5fFjTQ0kV6NgTw yzAtdrC54VQvwrI41HVFwFxo7doOwRxG9LOy7HR8fTBN8G3kbs3j2RbBRCxmqhX1cQoar2bi86Yf 3Cc/N5Ykb0t4DWrpvMFtz8KoElkHyTsXMLanZKptfsS+pyShrAbR3UebKDwLWVi3NhBM2rMIJo2z ig= X-UI-Out-Filterresults: notjunk:1;V03:K0:9sqWUovcy0U=:7agmF5GjQvyV79Oab/e7cc aW6XjNUkTo+qcooPbQNoaYE2sYgsAPchR+CVdUjWlYRcoTKbomQ7VkXBPxtdNEa547NfCeyRE OWvy5kRCxtcJLH50fVvu3zWJghIIB/IztLfbRdLsB5eVggiyrHz29PiOky9PVaxWABCEbCCMu 4dglnikMN3E/eC7cGKS/LXJ1BFKjq7/VMtDln9bQxtDG8jnzDDbGczFWXofbATxBv3SzKSHHD K3BFiZ2qsTGbgTplqw8cQzhYzUd1EENlhwETjqT6cAMcNApVYbj75ZCtcSFC6c7u92EIEQ3ZA BXMoNoZQ/nE6XBjHv+FzyC5iBFWIKDyJ9cXClkA8hcDYfLQabVV15kxfjf8oYIFDq9k0b/IpO +2oXXb+3Tpaf00cvFhp0YMlGz9gtR16Aoy/iLqEbauSpHY+eUnuVZ1nE+3CgXrV43ZE+1OMR7 Z50v0/Rh8kTNbgYFjTo7/rYEc/5a3Sx5cJa8ZPNUeoUOMm83c5WhVigHDG1+a+7sBkIF85sdf 7apv7HnME/wlD8iopkEAANXZybOf1EqBsT31GxeZZ2TFMSIt++rWJhNv/Qv1RHCjcr4VC9Aw6 9pRPdnpBhNl+/wWMPxNJKdEIuwD5W5Za27q7ya1eXGC2iz7VSShvDElTXvCXVNS/6IlIa0d9O +r/DQJ9joowNMV35JMr2H5yqk1sTp6E2iJiGkIds6IwSjUVdi+pMBmn0HsYVx+6N/4L74alG/ 2DaoT3ShpWLp3pjixLC/AVIXYBdB+812MZIoS1sxx7haDiBlk31cL6INixba2+4iKCWLdXTd Received-SPF: pass client-ip=212.227.17.20; 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:129978 Archived-At: > Sent: Friday, May 21, 2021 at 2:14 AM > From: "Jean Louis" > To: steve-humphreys@gmx=2Ecom > Cc: "help-gnu-emacs@gnu=2Eorg" > Subject: Re: [External] : Use the characters "+" and "-" in regular exp= ressions > > * steve-humphreys@gmx=2Ecom [2021-05-20 16:5= 6]: >=20 > > > [:blank:] is series of characters for that: > > >=20 > > > (string-match "[[:blank:]]" " ") =E2=87=92 0 > >=20 > > Have done the following (string-match "^[:blank:]$" " ") > >=20 > > Because (string-match "[:blank:]" s) was matching sentences with > > space between words as well=2E >=20 > Are you sure? As in that case the meaning of ^ is that it matches > begin of line, while in [^[:blank:]] it match anything but non-blank > and meaning of ^ is "not match" in that case=2E I have settled with (string-match "^[:blank:]*$" s) This would match only strings with spaces, not sentences with spaces=2E W= hat do you think? =20 >=20 > --=20 > Jean >=20 > Take action in Free Software Foundation campaigns: > https://www=2Efsf=2Eorg/campaigns >=20 > Sign an open letter in support of Richard M=2E Stallman > https://stallmansupport=2Eorg/ > https://rms-support-letter=2Egithub=2Eio/ >=20 >=20 >