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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24184 invoked from network); 8 Nov 2022 14:31:52 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Nov 2022 14:31:52 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1667917912; b=n18E475VmHR7Awhjilw1ueaLMX5zUj1UfDhX6SIcaR67WUrKF3+upoNcS5XxR7ka4V5JzEKYMl pBVehtIfeJ1TV0sawPkLvBnKunbiI+ExormGlm0BSuOe8cmcjick+asnDYB1U38l6SwBaJ8ZZU LgyJ8VkqEJcKlePQwZlbTtiAd6oaI2UN18AkS9ZqsA1ElWFYFV29VMTqzklSmNT7BXabPlI8sm tQMGzDUEge55KZdcNfV83ikkIz9IIC872MHRohqu+jahPaQjTBpa9ufHOG6X+WtigO7KxNmj1R v3ZQD1VhXJdOLN3+LGV6he4ZvTYvKtr+0vSt6tGCoA5QQg==; 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=1667917912; bh=ZVENGRaUDuIFP2zosAE1lCg86Oy8OtF4/J9Z2COGM2E=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=ZkY7tL69/KTWY+kOUncUXNvTvy3DCCdPFu30mHT07qkgpETp23vEf3weQdQBeAOjNUWT2N2x5S r5KdWMI3qkoF3Ayt9LpwOfKxhy/9OMu6frgoMYGT9yz4JMkwxVLGBB7Y9wbCoMvlmT/4njvAYk MUp1P9iN0OEEGhwktXCeDJn6X04XpBASFkuR0/qbdwEd2hnCNmfISdom5tB8i8nSI3b0GA9bWR E7m5xn63TDSop4G8jeIccN+2dC+C1xq99SRt4eimbbShUeO5kbpC2Yl99NAo8HELVJOc15Kk8y UivzR3u+oUJL4kX2/o+RJO7yxrhKtTvcayIVmDLWwyiQIg==; 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:From:References:To:Subject:MIME-version:Date: Message-id:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=/tvc6JIzE/HZKwaTRYddNgWLG2gu6yBfFfP+DhAfX7M=; b=nJOkQ4bo0xHWZxhfYfk1J+yK2A bQJ+0sCmNpISmPhWKSLJLQ6/z5Mf9LoZNl3rNuo0/V33B54KIRAnElOj+ns1VsuMaXV4cBs9zMh1w JhUsN4De/SwIYTRTrZp9nJxasaWyb3Ne2sbnS76/q65INQPO88b7375BkxUTYi/SrtMOsJ5rs5j7I IGrUgNKtfp3nKJwdbQAoQgV7StY7G782bYTktZlMN0xq5wNCPQNKeqOTWY/ywSMigULhoFYv3Qg9s p/UJ3x4W0ZeUdP3qCzhpOu2kv4gDQWfv3z8DImjIPTSgzAj2RpASFtKswH6A6L0CSBLdS7VCKEmnv L2BVRAHA==; Received: by zero.zsh.org with local id 1osPdn-000PbP-IL; Tue, 08 Nov 2022 14:31:51 +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]:52015) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1osPcs-000Ou0-UH; Tue, 08 Nov 2022 14:30:55 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RL100JN57CS3JK1@mta02.eastlink.ca> for zsh-users@zsh.org; Tue, 08 Nov 2022 10:30:53 -0400 (AST) Received: from [192.168.0.3] ([24.207.18.108]) by Eastlink with ESMTPSA id sPcrohLWVC2xnsPcrobWDf; Tue, 08 Nov 2022 10:30:53 -0400 X-Authority-Analysis: v=2.4 cv=UMYbXgTy c=1 sm=1 tr=0 ts=636a681d a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=AiFJdc7i1PZ5RFVACrgA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrfedtgdeijecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdefngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <40b4884f-3851-9e52-c193-0a4d4467af02@eastlink.ca> Date: Tue, 8 Nov 2022 06:30:52 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [[ 'abcde' =~ (#i)Bcd ]] Content-language: en-US To: zsh-users@zsh.org References: <9bc02014-76ca-b2c0-5f7c-284b90884225@eastlink.ca> <15a3af0a-87ad-49f8-ab9f-baa240e205f6@app.fastmail.com> <29b06e8a-e58a-91c6-985d-64020727d603@eastlink.ca> <4ab5bc12-7b60-0478-8b79-72e3319dcb64@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28341 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 2022-11-08 06:37, Roman Perepelitsa wrote: > > Can you give an example of a use case where you are using a regex and > cannot use a pattern instead? None of the examples you already listed > would qualify. Let me chew over what I've learned just yesterday and today and see how it shakes out then backatcha.  It's huge just conceptualizing the difference.  As I said, I've tended to think of globbing and regex and pattern matching as more or less the same thing.  :(