Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Feature request (#b)...(...)<not empty>
- X-seq: zsh-workers 40631
- From: Sebastian Gniazdowski <psprint2@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Feature request (#b)...(...)<not empty>
- Date: Sat, 25 Feb 2017 00:37:10 -0800
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=DdZqwcJwJgj4S36L4OzUkmtqVQw=; b=C4gqiJKu+y35E0XorPGca A8/iudByAy9QnfbgyONiTVI/hlIVZYemaynLi7R0cKfVxgmhAtjEqAOgzEerSHZE u57whPjJyqpHQSQSoFJs/sQBAmszSP0dWvU+gyUsB7Zu8GNVhmWt2hD3ulbak+Os Da0XRS9EkymKr1zbISUya8=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=smtpout; bh=DdZqwcJwJgj4S36L4OzUkmtqV Qw=; b=E1A0nbJpOPmm84CGl4/VGftYfvkaupzzihLyzRA40WaxZKwJV04mIOUmp j8YtpfvMtWGnwxaA8T4c/AZyPYSeoROHZg4IUhn+BSTmhsfABiKAMKRB8LLYtVdx hfTn3bSA8hX7BEy9hPgdK/3T6/5UcbHcoMxk4MCsAaKXyhSh9o=
- 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
Hello,
found a limitation in regex-like specification, maybe it's easy to add
extension?
A pattern: (a|)(b|)(c|). Order of a, b, c matters, but any combination
of them will be accepted. The problem: |) in all three will also be
accepted. That's not a combination of a, b, c. This is onset of
something higher-level: "combination of".
So maybe: ((a|)(b|)(c|))(#n). #n is for not-empty, resembles [[ -n.
It looks like typical pattern situation: try something, decide if to
reject it. So maybe it's easy to add?
--
Sebastian Gniazdowski
psprint2@xxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author