Hi Gurus,
I could not understand the descriptions below about the usage of \@!.
"a.\{-}p\@!" will match any
"a", "ap", "aap", etc. that isn't followed by a "p", because the "."
can match a "p" and "p\@!" doesn't match after that.
I know why "a" matches the pattern. but I don't understand why "ap"
could match the pattern "a.\{-}p\@!", so does "aap".
why "appppp" also matches the pattern?
from the pattern "a.\{-}p\@!", I can tell:
if the pattern is a.{-}p, it will match ap, aaaap and
absdfasdfasdasdfasdp since .\{-} could be 0 to more chars as few as
possible,but followed with a p.
if\@! is after p, does it mean p should not appear at the end? why ap
is ok? adsfasdasdfap appp is matched the pattern "a.\{-}p\@!"?????
TIA
--
You received this message from the "vim_dev" 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