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 12:11:49 +0200 Message-ID: References: <20210519213207.GD4855@tuxteam.de> <20210520082613.GC1127@tuxteam.de> <20210520095603.GD1127@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="20899"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu.org" To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 20 12:12:21 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 1ljffA-0005D0-VY for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 12:12:20 +0200 Original-Received: from localhost ([::1]:39696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljffA-0003Pq-0i for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 06:12:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljfeo-0003PG-P6 for help-gnu-emacs@gnu.org; Thu, 20 May 2021 06:11:58 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:51843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljfem-0003ga-Ol for help-gnu-emacs@gnu.org; Thu, 20 May 2021 06:11:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621505509; bh=zjtkt3cyTj77McSMnLsGEd2FZw0IXEaoVUZaPokvt/8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Phxr850QWTIoww4AQSwIZ18GajXd64bJqArdJd8Rtlpvu3NIfwsq/DPxlxi+vbXha JzVjDh1CtYgZc6Hz9r9ol/Jf4vRdcibnhxEjFnIEuUTXbl/9OMNj8GmlyzYbtWDjpe M6auOcd0SEtHwbrbARtYAwDe9mpvlHQ6KXCZ4hXA= 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 12:11:49 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <20210520095603.GD1127@tuxteam.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:qb32mbtYdTNr9QFEEogomjglDHS7Gat1Qe15aLTX1nDnFJltvxXhTF+ZGERH8Zr9rDrI1 ufCsI/LjyoXwrVaMYkknI7NjPcDQgpzenkRPCzMC+PnHnOx6b+H9Ha7BpG+9JVgOn5hDDanJX/17 kj18ww4ecmq1xU7AglhQ1FT5MqY08hrhP7zhsaGcKy41iju8MQTxS2eEohNBGlS8EeZqcKYTLcFD N1nj7FpDDQXISilIx8bN2SbaLGueWGzZbwG1H8OCGVBDT/13JVAN3ksSkWyAEMuWjWnNJehzGO8t gw= X-UI-Out-Filterresults: notjunk:1;V03:K0:Wd/274tY49o=:vw1trXAbxunn3kfCzpCbQ0 9rriDGlP8YLTS0i+sQWAarCOPR8sVtw2WFHGCSzSggTINyrfzuHPUCnC48t5279inj8pLhG0a DUPvHQkD8ligP0vmP3XPtoqGNh0N3C9+VQRTrCZ36/NtLnZgE/M6Jo2fViFeyymsCjfWIkJzo c/WsYA35ilXFo0WVSS98kITc8dZMSMRMSExzHr84eWa5f7BYwY620SVW/Gz9lEX4j7ubCdozN LKK0u1e5mXZqOg7BJFLdUIz96kCzZ2xtSmxZAPf/EKT0BfXQQbwv9taDRf6rm75Pgp0Kulk7b ef/zMgo/IbfCJ9OpYardBC62zjPTcQcwIpbDru/JF7xxkI3Flgej5rlIpY4XbuPgM8L8wz/1p +UYvBiShKJb2I9gyIP09DJpTZiya2cf6Gh3If2jAhGFBblqY94FMXKplPNU9hOTS4meFmruSF clk8PMy/TLyxK+L0UYzYzLaFW2sx0pFaqhNatBxbcz55Q5H3TVHuoEnVqX9M+OhOPG1xlUvE1 rCEqGq/D5AQygRQjTtx7dvcbo4X1Te8EM9t11tP1KeAkoa+/QGjaFvDfwB15wCl64NwTrB+R3 IRc/0cGFrl5Dk/3twyC4vaa9W3XAPywxoSt/4gf2eYJt+i4tAL1TXUwegcBOiSE39ApzRXMd3 biHHzrmBWpmWswNQ4q4rDnPmVqq6I/vOMcTTCH4D1D3kBFSUo3mP5d+ECYwMfhm0aj3seHnKs yLGCrGNS4LRFdZQCXClxxk2BjPcwtDVvzVope4A4LNk4d+qXf5uqXmwvqOn+Vt6hQzpgDZyz 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, 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:129955 Archived-At: > Sent: Thursday, May 20, 2021 at 9:56 PM > From: tomas@tuxteam.de > To: steve-humphreys@gmx.com > Cc: "help-gnu-emacs@gnu.org" > Subject: Re: [External] : Use the characters "+" and "-" in regular exp= ressions > > On Thu, May 20, 2021 at 11:42:58AM +0200, steve-humphreys@gmx.com wrote: > > I have now used ";; [;+-.]+" to match some specific lines. > > > > (string-match ";; [;+-.]+" s") > ^ NOOOO! > > This is a dash in the middle, indicating a range (i.e. "match all > characters in the range "+" to "."). In ASCII (and by extension, > in UTF-8), these are "+", ",", "-" and ".". I thought it was only about numeric and letter ranges only. > So this will match... > > (string-match "[+-.]" "Folks, let's go!") > =3D> 5 > > ... the comma! > > This is the whole discussion we've had just yesterday and today. > I'm a bit confused: you seem to have ignored it totally. > > > How could I negate the regexp that I have defined? > > I don't even know what you mean by "negating a regexp". > > Cheers > - t >