Re: Regex matching composite numbers no longer works with NFA engine

2013-11-20 Fir de Conversatie Urtica dioica
The problem is the NFA engine can't figure out how much a multi in a submatch should match. I made a simplified case. We'll make a bunch of lines full of as. This regex that uses the old engine matches lines with an even number of as: \%#=1\v^(a*)\1$ This makes sense. The submatch can match

Re: Regex matching composite numbers no longer works with NFA engine

2013-11-19 Fir de Conversatie Bram Moolenaar
Urtica Dioica (Gaultheria Shallon?) wrote: The regex in question became somewhat famous after the VimCast at http://vimcasts.org/episodes/vimgolf-prime-numbers/ Here's the setup: CTab1EscqqC-AYpq540@q From here, the following command is used to remove lines with a composite number

Regex matching composite numbers no longer works with NFA engine

2013-11-18 Fir de Conversatie Urtica dioica
The regex in question became somewhat famous after the VimCast at http://vimcasts.org/episodes/vimgolf-prime-numbers/ Here's the setup: CTab1EscqqC-AYpq540@q From here, the following command is used to remove lines with a composite number ot tabs: :g/\v^(TabTab+)\1+/dCR On Vim 7.4.91, this