From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Shy groups and * ...eh, what? Date: Sat, 22 Oct 2022 08:39:02 +0200 Message-ID: References: <87edv0mqns.fsf@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RPAXBXP6Dqt0qjld" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9729"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 22 08:56:47 2022 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 1om8R4-0002LY-Sr for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 22 Oct 2022 08:56:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1om8A7-0007rd-Cp; Sat, 22 Oct 2022 02:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1om8A2-0007rQ-62 for help-gnu-emacs@gnu.org; Sat, 22 Oct 2022 02:39:10 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1om89x-0004zC-0C for help-gnu-emacs@gnu.org; Sat, 22 Oct 2022 02:39:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=XeYp3rbsNFEbmUJgssYIenJYqvD+3rgo9GIbYS3fDFk=; b=WQl6Q5qYSwIZ/4058GFmdigUot 3GMt1FrRSMfwUS+0EaTBvNgGInR8JAv+xpUlULPD9iarT+Ra2TGQl7IZpbicYr5uUOV4KaBBwFhvQ w+A7bG1Ud0l/liEhPRLOTWRer+kzWa0xoxkN9eVWOwxvKC5dGTVUEOEjuUZ+1ctlbOObo9QOvfXNQ tVLP4XgHbgWKWfvMs+QFeosv2SyMYW/DiCtDMs+UMqGuY/XRjopWfvZbAyYketvGpt/nkJ0ygdYIQ cVffa5AGhJh6xGR0RQznX4zMJo29WZM7M0Gx/qt9f4RQl8gRbVyQZqQPQbrMp7MEj3rCEXAxNDNxC G8J2XhNQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1om89u-0006AK-Fb for help-gnu-emacs@gnu.org; Sat, 22 Oct 2022 08:39:02 +0200 Content-Disposition: inline In-Reply-To: <87edv0mqns.fsf@web.de> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140265 Archived-At: --RPAXBXP6Dqt0qjld Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 22, 2022 at 06:24:39AM +0200, Michael Heerdegen wrote: > Hello, >=20 > I wanted to be sure I correctly understood that if you give multiple RX > arguments to the `rx' `*' operator, they are implicitly interpreted as a > sequence (AFAIU, that's the case. An implicit `or' would also make > sense, that's why I wondered). I didn't try to repeat your examples, but you are right: there is at least a big smoking hole in the docs: all of the repetition operators seem to take zero (one?) or more arguments according to the syntax shorthand, but the text refers to just one term, like here: =E2=80=98(zero-or-more RX...)=E2=80=99 =E2=80=98(0+ RX...)=E2=80=99 Match the RXs zero or more times. Greedy by default. Corresponding string regexp: =E2=80=98A*=E2=80=99 (greedy), =E2=80= =98A*?=E2=80=99 (non-greedy) =2E..what is this `A' the text is referring to? Your experiments suggest that it is the sequence of the `RX...' in the syntax shorthand (i.e. (seq RX...), but the docs just leave it open :) Cheers --=20 t --RPAXBXP6Dqt0qjld Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY1OP/wAKCRAFyCz1etHa Rh77AJ9UKCa7JYkkN99ybmplAPyucpcmRQCcC6D+4pATMS5a2gRPLUMziAEcEDA= =VpqV -----END PGP SIGNATURE----- --RPAXBXP6Dqt0qjld--