From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28360 invoked by alias); 31 Mar 2017 06:59:04 -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: 22643 Received: (qmail 28121 invoked from network); 31 Mar 2017 06:59:04 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(0.0/5.0):. Processed in 2.163588 secs); 31 Mar 2017 06:59:04 -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=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at zdharma.org does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new using ClamAV (15) Date: Fri, 31 Mar 2017 08:58:52 +0200 From: Sebastian Gniazdowski To: Bart Schaefer , zsh-users@zsh.org Message-ID: In-Reply-To: References: <170330221929.ZM18456@torch.brasslantern.com> Subject: Re: zregexparse X-Mailer: Airmail (231) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline PS. I've examined if zregexparse could be use to fill region=5Fhighlight,= and it seems it can't: zregexparse p1 p2 abc =5C( '/bc=7C=3F/' '=7Bprint =22=24p1, =24p2, =24mbe= gin=5B1=5D, =24mend=5B1=5D, =24match=5B1=5D=22=7D' =5C) =5C=23 1, 1, 1, 1, a 3, 3, 1, 2, bc The =22=7C=3F=22 is needed, otherwise =22bc=22 will not be matched =E2=80= =93 no substring matching. =24p1, =24p2 are quite veird values, rather no= t usable as mbegin/mend (except if they are mend, then mbegin could be co= mputed using =24=23match=5B1=5D). And the mbegin, mend are set locally, i= .e. always start from =221=22. -- Sebastian Gniazdowski psprint /at/ zdharma.org