On 04-Mar-2010 Romain Chossart <[email protected]> wrote:
> Dear team,
> 
> There is a typo in the doc about the regex patterns. Can be quite
> misleading since the operator is not easy to understand for beginners.
> 
> Location : runtime/doc/patterns.txt
> Where :
> 
> :help \...@!
> It is in second paragraph, second example : "a", "ap", "aap" should be
> "a", "ap", "app". (The same example in the first paragraph is right)
> 
> I included a patch, but this is my first one, so tell me if I need to
> modify it to be conform to Vim devel standards.


Both the versions are correct. Maybe the sentence might be more
descriptive instead of providing an example, e.g.:

"a.\{-...@!" will match any string beginning with an "a" (NOTE: also
one ending with a "p") that isn't followed by a "p", because the "."
can match any single character (including a "p") and "p...@!" doesn't
match after that.

-- 
Cheers,
Lech

-- 
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

Raspunde prin e-mail lui