Le jeudi 23 avril 2015 13:46:03 UTC+2, Claus Atzenbeck a écrit : > On Thu, 23 Apr 2015 at 2:21pm +0300, LCD 47 wrote: > > > Because the anchor is not inside the lookbehind group, thus it isn't > > optional. Since the lookbehind group is matched with zero width, you're > > effectively asking Vim to match /\v^\w+ . > > Right! Strange I didn't see this right away. > > Thanks for the pointer. > Claus
Hi Claus, Instead of positive look behind, you could use \zs to define the location you want to start matching. For example: %s,thingsIdon'twanttomatchbutthatshouldbethere\zsthingsIwanttomatch,replacement, Best regards / Bien cordialement Alexandre -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
