From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20060 invoked by alias); 20 Feb 2016 19:18:40 -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: 21310 Received: (qmail 6195 invoked from network); 20 Feb 2016 19:18:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=w9c8wNuvIzGF1d1iIPYABvjRfffZVctDupxZ3iVzqqw=; b=h6RVf1e5+3fOTMUC0pPDntxNtBiE3Nc9mkRNmiSmIZ4LG6aJ8QiR3lJcvCKjqfVk6+ 3uauS1v1j9+ReyO9RueBTbbH1icdrOu+rIT3CzUQPgEa8dPQSaTXaO8gLrxn7jgZvhFY S2KKs0XX3PZCicUKZXUfGfzo4IoFuegmjE1MIJj1vfzGFWLuOCp3pQeaaHbNpYwH+u/g st6Ua5c3yOE002f2izK+x+HlXhxvC+CuR2VacfY8nKZU8wC/dCgJ7ovmQehYiOX7zpiT 5r+qE/bjJ7D01jwStwoyeE9sMWBkkQjNjZ5ac89ODZjqT1QQedslqhsfSxpDmKKMZiwY B1tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=w9c8wNuvIzGF1d1iIPYABvjRfffZVctDupxZ3iVzqqw=; b=eWbZbhIhOnw4H/GZ1PkL4+8YsMIIknAqRL2xyLQyFmQHYcO4Dl7SN7HyygHcHKzRNQ pYNV9DKfzc6TOo4GIckG6jsI8DUAR/0pVO7F75QwTxC8bpwwO0+sH9NoKubuO55uQEH8 eWrge4/VWeoua5gbpX/fE8O8A9CXZ53s1gjXEsXTCFsMh+IbqdAtB07kHH1Uig1I7wP2 QCY8vbDXGq74yEA3mMWpJjB90nr3Ut0SEeGL5Ec9KxgyL+2X+Mex/AhgwLfMaFvLb4Kk tjp6xdOKQ0pazO4xf/mZ3qTgPu0bpB/IN/Pl+fgBm+X/NXDBW+hypRGZTHZhYQhrYjsu qfzQ== X-Gm-Message-State: AG10YOSfD2aQUosxtbvxfKHoCRn1rjdvyIrAsZ2Wx/D9UoWn1JYyBAPh/VTNHZHLjZYOMA== X-Received: by 10.66.157.161 with SMTP id wn1mr27312662pab.146.1455995915518; Sat, 20 Feb 2016 11:18:35 -0800 (PST) From: Bart Schaefer Message-Id: <160220111905.ZM21391@torch.brasslantern.com> Date: Sat, 20 Feb 2016 11:19:05 -0800 In-Reply-To: <160220111603.ZM21374@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: Feature request: #a (approximate matching) only for spaces" (Feb 20, 11:16am) References: <151207002253.ZM32539@torch.brasslantern.com> <160219111327.ZM17643@torch.brasslantern.com> <160220111603.ZM21374@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Feature request: #a (approximate matching) only for spaces MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 20, 11:16am, Bart Schaefer wrote: } } All that was really necessary was to add (@) after +${ but note that any } pattern characters in $INPUT will become active again in the subscript. Oh, to prevent that change that same (@) to (b@): "(${(j:|:)~${i::=1}+${(b@)${:-$INPUT"${(@)^${(s::)INPUT}/?/}"}:s/(#b)(#s)(?(#c$[i++]))/${match[1]}*}})*"