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

Re: Issue with ${var#(*_)(#cN,M)}



On Tue, 27 Oct 2015 11:03:53 +0000
Stephane Chazelas <stephane.chazelas@xxxxxxxxx> wrote:
> 2015-10-27 10:46:33 +0000, Peter Stephenson:
> [...]
> > % egrep '^(*_){2}$' <<<'1_2_'
> > 
> > fails to match completely, i.e the backtracking is too complicated
> > to handle, whereas
> [...]
> 
> Except that it should be .* in REs and that REs are greedy.

You're right, I got the pattern wrong, and it does work.

pws



Messages sorted by: Reverse Date, Date, Thread, Author