Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: regexp-replace and ^
- X-seq: zsh-workers 37021
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: regexp-replace and ^
- Date: Thu, 29 Oct 2015 16:46:35 -0700
- 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=j5obqM85UeAd9gINWlBnaQteq4uvsLsbyiH036QO6AQ=; b=ChZRobvLUvNJ7oBdC6MISo0Ru8rp91wTn68ITUjdx0YChcZyhWNyE27tFtR0cOt/6m 0PNLyq2np+rnWZS8AdjPoBSP4e9q7wzug7OhcwX23uWIizfnyRa3dH21gQSFdFQOWxFv WDoeUcY/6LAZihESEISmTJSd6/Z2Iz9dmJt4Jv2RHClLXF3M0HIR7tbh2+5tEP5VKt4p IFRe/PhdANgozWxxOeOEzbmQzPETwzVWF46yEi8XXp4Ou09slWyRzlWQJw9NTAgZ4qb1 LqU0gX2JUKMnbzPYHTadDaPuZJIojeR1/At7ALlU+xSH9GfGblrVZOJVK4T62ruZzB/w 2uYw==
- In-reply-to: <20151029190807.GA18037@chaz.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20151029190807.GA18037@chaz.gmail.com>
On Oct 29, 7:08pm, Stephane Chazelas wrote:
}
} Or maybe have a (E) for ERE and (P) for PCRE parameter expansion flags
} for the ${var//pattern/replacement}.
Each of (E) and (P) already means something else.
It ought to be possible to fix regexp-replace. A leading "^" isn't that
difficult, it just means the loop should only go around once (unless you
expect it to match after embedded newlines). The tokens that match word
breaks require more thought. I'm not sure what to make of lookaheads.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author