From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Determining existence of text following point Date: Tue, 18 May 2021 14:23:25 +0200 Message-ID: References: <87cztpx8oz.fsf@ericabrahamsen.net> <87zgwsx5r3.fsf@ericabrahamsen.net> <20210518110743.GC11623@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="26639"; 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 Tue May 18 14:33:13 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 1liyuN-0006fA-Ie for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 14:33:11 +0200 Original-Received: from localhost ([::1]:45788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liyuM-0001rY-EX for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 08:33:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liylf-00017D-5E for help-gnu-emacs@gnu.org; Tue, 18 May 2021 08:24:11 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:57041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liyla-0003AH-EI for help-gnu-emacs@gnu.org; Tue, 18 May 2021 08:24:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621340605; bh=eXcnBahGpNyKxaNeZbr95ksufJkJiYhOSs8Wg+8iXRQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=EL2p2EO9Iez33OfzMdTgKO0Kjb7DtoQ3+NgHRFSdgizwNLDBVjD1EvRaWCOBecwN3 wKaOHSJNfl2LUkOdgPQPA7lssoSmltn/FVDZUVQzwPb+B1lx9G7ncoQB3dQ+NvdoG9 4o7RlfS7CQv2H/muyy8ln4JCyzuGe2aVTQJbJ+Rw= 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-bs13.server.lan [172.19.170.181]) (via HTTP); Tue, 18 May 2021 14:23:25 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:c7R1TaqHKM43qXr6qybFDJ3G7XfjwN+xZ//WZY3CaZzupm+29EsFiHmdLEe0vW+TTfFNw yMAqQPcnlPtUkhgUK2Uf7M43H++/VLL96T4NdUveva7iDFl4OtgFFg9/REhkdYgIbnyv67Cu3uhE 4b7KmXk+dSdm9AFWkC2xUhZRD623foNq5jbI2RlhnXcTtwNRr8wvD4LrXxn5/L1gF6JORR8AyhIL sLNjaAt7KcuuQ6KQn+eI3WJ88ZqQqc5kSl+2IgCpIgbMeelpA/zX239P7PMbT//SBLAt0Yc3ezRO j0= X-UI-Out-Filterresults: notjunk:1;V03:K0:tSIIa/FyXYM=:ReNfcFiiO5cDyBX/ilxEAB kxs2Ad5cjYRc1uQp0aBfOJ0rDP50rWDW+lKNCzg0TzNerhv5wvolR7Mcav6pF1vQCyynZNZQU xU/ceXFBg7jc5IYwOrCPIWq/uaWTUP7YNNpBtkgvJguiKOE2k4g288VoWG3BtFfEkBYAAuzhq Zydi2cQf/vq33F/ahAZ0Q2Ml4KkKEiGu6zbPIrNSUnFiVxLToCl5AQchpKyzJKYroANq2HJhJ fzh1+BoqTAz+EWuWw5zdLEyydyHTynFix30lM03EL3n+SWQmTovP6ZF6XMsay21ZTQZfzE1Ga PDOqdmlacCBuPkXhLeqhsmJrV/BOorPa5iauTSES39pk5ybllml+P1f3vXJdhgasGqVSohqoJ 677H6MI7tfwhYqLLiERFVI6IPCCDofxvWl5TNa21abnBVswnx8GwxPHnv6tM4oyQFr1eqNAKL pMuELSIANeqJqTJ+RZwzZSNza7IXWBj7qZ09pGrig40C8L5dRjpRl3Chma0CHZ1ngRD8qobnV znrI7fqJLI0TWjKd+29KPyGsvbwKS3AHL1GXmFozalZYZ6fJm3FUIXEwdcDI4GMnPgn34opxL xV5hKtDWsHxJK5Md7b6ZF4hvEzhP7amYjxGAilt01Tf3BQlURzVpovZfbU4WksDL+cgOoC07W npGaV+VQqnpWN0GXjq7fnn40y16vCdV5rK60ghWBe+4uHSUbH9zIE+ZAQMUJCAKHstUgu+X0j vvRHkyqVnODBVro3YDJeO3RTsmlrirCfCI9YmfDHnIIs7P+fWEelJmSq4frEjG6zWWPQMDHA Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@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:129876 Archived-At: > Sent: Tuesday, May 18, 2021 at 11:56 PM > From: "Jean Louis" > To: "Christopher Dimech" > Cc: tomas@tuxteam=2Ede, help-gnu-emacs@gnu=2Eorg > Subject: Re: Determining existence of text following point > > * Christopher Dimech [2021-05-18 14:27]: > > > > (setq sa (string-match "[^[:blank:]]" " ")) >=20 > > I find the description different from what string-match actually > > returns=2E >=20 > The symbol ^ means "not following", and that regular expression means > match non-blanks=2E >=20 > (string-match "[^[:blank:]]" " ") =E2=87=92 nil > (string-match "[[:blank:]]" " ") =E2=87=92 0 You are correct=2E "^" means match everything but the following class=2E I am quite used on see "^" to mean "beginning of line"=2E So just read it as I usually do=2E It is unfortunate that there exist so many different syntaxes for writing regular expressions=2E > --=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 >