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: Use the characters "+" and "-" in regular expressions
Date: Wed, 19 May 2021 19:39:10 +0200
Message-ID: <trinity-d5767d58-d51a-4ffb-adff-45a12b89a8c8-1621445950512@3c-app-mailcom-bs08>
References: <trinity-76ea1199-ca84-4953-91f4-48e19f225d98-1621440445355@3c-app-mailcom-bs08>
 <CANc-5Uz9xF8ke=m7jXrhy1PVMUHkPX1UeUcQd1xo89G+GwG1QA@mail.gmail.com>
 <trinity-0830bc3f-4c8b-426b-a877-e77dd5fb4176-1621441589393@3c-app-mailcom-bs08>
 <CAP_d_8VjkuKz90t4CH9OJcbNSRNdrkZhMDctsLEMGqd89y704g@mail.gmail.com>
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="21937"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Skip Montanaro <skip.montanaro@gmail.com>,
 Help Gnu Emacs <help-gnu-emacs@gnu.org>
To: Yuri Khan <yuri.v.khan@gmail.com>
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 19 19:40:31 2021
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>
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 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1ljQBL-0005Zh-Cz
	for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 19:40:31 +0200
Original-Received: from localhost ([::1]:32880 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1ljQBK-0004gO-4l
	for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 13:40:30 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55936)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <steve-humphreys@gmx.com>)
 id 1ljQA8-0004eu-4D
 for help-gnu-emacs@gnu.org; Wed, 19 May 2021 13:39:16 -0400
Original-Received: from mout.gmx.net ([212.227.15.19]:52183)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <steve-humphreys@gmx.com>)
 id 1ljQA4-0001ri-LT
 for help-gnu-emacs@gnu.org; Wed, 19 May 2021 13:39:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1621445950;
 bh=vn1fGhF7yCPayCjlKdJ8oDqkKZXY5rouxBkZ3igwqdM=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References;
 b=Rpw/lOgoI0lrZznFnpcf6lS7UrMxDwNrHVHT2+pVJGUde41ZGnr3CCeZrbY6svFRO
 6Nvi07JiXc1b/KcS+c1X6tA3kvw5kSeMqFMAPvjg7RyY2aDzn7qZYHiFc1NYvLC7+I
 LAOTFI6PUaUVrK9a2bfgXEn4sbDF0zX0/CFDk5yU=
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-bs08.server.lan [172.19.170.176]) (via HTTP); Wed, 19 May
 2021 19:39:10 +0200
Importance: normal
Sensitivity: Normal
In-Reply-To: <CAP_d_8VjkuKz90t4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BZ7cxAgI6egoAG+cvxq06w21uspXQyp6o8PFfnMStyIz
 e9q5V26E9DXYI9omldG/bNIa1GdbbPw8U9st4GHYnVgkkpumwKYs8FwsyrqIuWb2H/WmcuxfS
 tnsjfM9NQUEq9ZfYRZxvXKEme4fSmqs1+itqpjr5tfHO/tnI5fsnt7teNa9nCrKb+NR5YXSD 
Received-SPF: pass client-ip=212.227.15.19;
 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 <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "help-gnu-emacs"
 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.help:129936
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/129936>

I had tried

(string-match " [-\+\=2E]+" s)

> Sent: Thursday, May 20, 2021 at 4:47 AM
> From: "Yuri Khan" <yuri=2Ev=2Ekhan@gmail=2Ecom>
> To: steve-humphreys@gmx=2Ecom
> Cc: "Skip Montanaro" <skip=2Emontanaro@gmail=2Ecom>, "Help Gnu Emacs" <h=
elp-gnu-emacs@gnu=2Eorg>
> Subject: Re: Use the characters "+" and "-" in regular expressions
>
> On Wed, 19 May 2021 at 23:26, <steve-humphreys@gmx=2Ecom> wrote:
> >
> >    I want to match a space followed by a series of "+" or "-" or "=2E"
>=20
> You forgot to tell us what you tried, and how it doesn=E2=80=99t do what=
 you want=2E
>=20
> (You probably also forgot to read the manual chapters (info "(emacs)
> Regexps") and (info "(elisp) Regular Expressions")=2E)
>=20
>