From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27269 invoked by alias); 1 Jul 2013 18:08:09 -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: 17840 Received: (qmail 25896 invoked from network); 1 Jul 2013 18:08:04 -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=-0.3 required=5.0 tests=BAYES_05,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 66.111.4.25 is neither permitted nor denied by SPF record at _netblocks3.google.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :mime-version:content-type; s=smtpout; bh=upaEXal7Ayeg/5o0ultMY8 CzbeY=; b=uyUc4tUnbrcS9oEys4TWVfT5MZyeuIkeARBgxOvLh1SJzm17tTXhN9 f5aXH7SSptfNvQWRWZtlG9MjEVn6AX6sNhyQ3mwgB+o7eZWcdRz4ECGT2jfuLwYN Prdfls2vrz+X6mKEh75iuO6yd6QndNO3Gjo6NEPudVWKaTLYL6FdA= X-Sasl-enc: dFbz2NYQviiRpkr7gZH3s26Gvmlb6wxNl767pFdphHrj 1372701580 From: "TJ Luoma" To: "Zsh-Users List" Subject: input foo, output '[F|f][O|o][O|o]'? Date: Mon, 01 Jul 2013 13:59:38 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Mailer: MailMate (1.5.4r3323) Before I reinvent the wheel, I thought I'd ask if someone already had (or knew of) a way to take a string of characters and output a 'case insensitive' regex version. For example, if I input 'CrashPlan' I'd want to get out [C|c][R|r][A|a][S|s][H|h][P|p][L|l][A|a][N|n] (Input will usually be ASCII letters, with an occasional number and perhaps the occasional '-' or '_' but doesn't need to handle anything more complex than that.) I tried Google but found it pretty impossible to make a good query for something like this. TjL