Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Feature request (#b)...(...)<not empty>



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