From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12726 invoked by alias); 3 Jan 2013 10:41:45 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17528 Received: (qmail 23193 invoked from network); 3 Jan 2013 10:41:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.223.177 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=z9rKaBZu39YZWeIx/Pk6DL2Nloa/8RQmk8RYHmZYPAA=; b=DlaWrGjfUh4A+aE3wJQ8yUgPR/dpzDquNB08RNkojtwwQqrYOrIlBmtfeyX74gcBMi R6qd6G6H3KOEQCgmaqMieMVlvBYB+tXO3Tq4MgTy3GhVr6iocljnKh9T7Oqp9iRUV6qa d3KrSwo3MGl6pbCjKER+ptn5qgHw3nLVHTtilg8fGq/xQLDQ4Upq/eTFb4JVwljIl+23 FtpblSiDdf5wi5mlD4ncjbjYUn4/BpC+TAGwghsph6ajSW5GE/EnW8KAL2tgxBEb43kX A8ZJkXNNRX1T5WamMLPRAz533LeDxbrggqUdN+ydDEU2vVWNKMsvrF+YLzKp7nRnXT8R PKIQ== MIME-Version: 1.0 Date: Thu, 3 Jan 2013 16:03:56 +0530 Message-ID: Subject: case insensitive string match From: rahul To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=90e6ba6e8db46f4a6204d25fe656 --90e6ba6e8db46f4a6204d25fe656 Content-Type: text/plain; charset=UTF-8 I've been using this for doing some filtering from an array: matched=(${(M)array:#*$patt*}) Now I need to have an option of case insensitive search. Looked through the user's guide and other sources but I don't see a flag to ignore case. Is there a way without changing this to use grep. I also dont suppose approximate matching can be used here (that's only for filename globbing, right?) -- rahul --90e6ba6e8db46f4a6204d25fe656--