I want to find all instances of "index" not followed by .php in a log using less
. /index(?!\.php)
does not work. Is this possible? What is the regex for less and vim (do they differ?). Is this not possible with these application's respective regex libraries?
Vim Regular Expression – Negative Lookbehind/Ahead Assertions in Linux Less Pager
lessregular expressionvim
Best Answer
In
vim
, you can do like this:For more details, in command mode, try
:h \@
: