From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11841 invoked from network); 5 Aug 2021 15:49:38 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Aug 2021 15:49:38 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1628178578; b=lv0Tz7Q7HqfP+jOqCtbZlKSo0xjIVf4CYLowiKcQkH3hkF6qU8UV/sQpzPtJtrK/TrCky+t5wd oN/TYxi8h/jPgcEGawswyBUe6uHo9+VFOKhax3kzSUY3gu9Hxy1X3qU3UyGgIjzq+RFZMfwKJE SosCiHwo6v4yNCc+68v2GKdpBpJCV5bh/8wg2/Tdy68JZ89alRu4JCX87ZnlnBUhfH65/rwBOj ot5tO33/tQHdqxrFkNPHDP7vm7zC7qdqEAstqLkUSel7kP4VY3H4tXklnF9GV8h4O0nTug7IGD oN8cadnNMLQ4xqo59sJQRzMsAgT1TIh0NsyGiF0LszkyOA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1628178578; bh=vnIOQEJVLWBv4nqo+aQusJAF0s72bNy/+FNcQxS9n1U=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=rBPCcgJ3nKzJmd3cdW32dWT07b0ieJSfhKAsN5g5T3Fb9w2n3uLn9ucCz+0i4W0SZo9u7Ud4+I a/Ertl4O/I7lRhABc4ymmQZYv22JL1gu2gyrG4ePyGy9cjIrQvZnFIR5Ozj3jViqvJwvttydWZ KeS8nr1tPDM9KDMBNNmXsp0dyIr9XRZ/nM1Bk3KZITqPGf/2PWgqEuHivOvBsKmBMCgIMDiBC9 fP4/mKAeNeHCblebkbhrzU5HEKPdyydUgWElB9V8Uc7Q0WWHzR+12szghOzXAn7tFNdzuB5iSO AophCqyfea1vxSKxJbCxCx6dOZKvfk/PqHRZr2BIdjEaXw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-transfer-encoding: Content-type:In-reply-to:MIME-version:Date:Message-id:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=4VSMlamBgPodo2Lk6oRxGA2uVUH7GI6XyFNjvUpSFyg=; b=cZ4XYvp5KzRPzdiWq49PmMD3SN mW044CD7VRhogdIDkCHEyWxIoeqi/6Hj6LVh/nq+QZcAyBMJYTKLwhJKviMYtuhMZwm2xJYtV9bdF /gN5m9Pw32mR6+5+9zqDqiHaxAHikSut0DjRuGK0Cvp2nCf0oT1VTYfUOxu+QMqqTJpLwEpBbJikZ 61XIKYfRhDTwiO3Igx5FR0M/Ljhjj0HvzjYqA2FgSYp8kalFMzq/C9dDPMsjH+ZlK2EOaQFWYVS8d ncmuZgFKNcrr3wnCOHWxikv75u9xHXJe2ClaTWJi7vbv0EJ/FtO5WDTbGhO1uF9XPDjnT0wGihagd 5m23o+mw==; Received: from authenticated user by zero.zsh.org with local id 1mBfco-0002L0-JM; Thu, 05 Aug 2021 15:49:38 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:60650) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1mBfcI-0001ct-U0; Thu, 05 Aug 2021 15:49:07 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QXD000UNIBM8L01@mta02.eastlink.ca> for zsh-users@zsh.org; Thu, 05 Aug 2021 12:49:06 -0300 (ADT) Received: from [192.168.0.3] ([24.207.90.194]) by Eastlink with ESMTP id BfcHm4tIUzpCdBfcHmXqz4; Thu, 05 Aug 2021 12:49:05 -0300 X-Authority-Analysis: v=2.4 cv=FIHee8ks c=1 sm=1 tr=0 ts=610c0871 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=TD5Xk7XbdhZKjybPAC4A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrieelgdeludcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeekvdeuuefffefhvdeuieetffdvtddvjeegueejkeeiudehieetieehgeetvdfhfeenucfkphepvdegrddvtdejrdeltddrudelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrledtrdduleegpdhhvghloheplgduledvrdduieekrddtrdefngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: file globbing To: zsh-users@zsh.org References: <5bd2624d-86f4-fc9f-f57a-1e3b93a5fefb@eastlink.ca> <112137895.688578.1628177238255@mail2.virginmedia.com> From: Ray Andrews Message-id: <71675e95-eacf-1f84-8c80-a18999be1b73@eastlink.ca> Date: Thu, 5 Aug 2021 08:49:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-version: 1.0 In-reply-to: <112137895.688578.1628177238255@mail2.virginmedia.com> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 26865 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 2021-08-05 8:27 a.m., Peter Stephenson wrote: > > d,1([^[:digit:]]*|)(N) > > The (either_this|or_that) matches either what you originally said or nothing ("or_that" here is empty). > > Marvelous, I know the logic of these regex things is very rigorous, so the 'not digit BUT still something'  construction must be handled and of course there will be a way of saying 'not digit but maybe nothing' too.  Thanks Peter.  I tried to get the '|' working myself but didn't get it quite right.