zsh-workers
 help / color / mirror / code / Atom feed
* Feature request (#b)...(...)<not empty>
@ 2017-02-25  8:37 Sebastian Gniazdowski
  2017-02-25 15:13 ` Daniel Shahaf
  0 siblings, 1 reply; 10+ messages in thread
From: Sebastian Gniazdowski @ 2017-02-25  8:37 UTC (permalink / raw)
  To: zsh-workers

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@fastmail.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-02-25 22:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-25  8:37 Feature request (#b)...(...)<not empty> Sebastian Gniazdowski
2017-02-25 15:13 ` Daniel Shahaf
2017-02-25 15:36   ` Sebastian Gniazdowski
2017-02-25 16:47     ` Bart Schaefer
2017-02-25 17:24       ` Sebastian Gniazdowski
2017-02-25 17:54         ` Daniel Shahaf
2017-02-25 20:38         ` Bart Schaefer
2017-02-25 17:54       ` Sebastian Gniazdowski
2017-02-25 21:05         ` Bart Schaefer
2017-02-25 22:52           ` Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).