Re: BUG: NFA-regexp discrepancy with non-greedy match

2013-11-30 Fir de Conversatie Bram Moolenaar
Ingo Karkat wrote: > there's another discrepancy between the regular expression engines: > > for n in [0, 1] | echo string(matchstr(' x', '\%#=' . n . '^\s\{-}\zs\(x\| > x$\)')) | endfor > for n in [0, 1] | echo string(matchstr(' x', '\%#=' . n . '^\s\{-}\ze\(x\| > x$\)')) | endfor > for n in

BUG: NFA-regexp discrepancy with non-greedy match

2013-11-29 Fir de Conversatie Ingo Karkat
Hello Vim developers, there's another discrepancy between the regular expression engines: for n in [0, 1] | echo string(matchstr(' x', '\%#=' . n . '^\s\{-}\zs\(x\| x$\)')) | endfor for n in [0, 1] | echo string(matchstr(' x', '\%#=' . n . '^\s\{-}\ze\(x\| x$\)')) | endfor for n in [0, 1] | ech