Hi Tom!

On Mo, 12 Apr 2010, Tom Link wrote:

> Hi,
> 
> I have just noticed that vim allows to use "**" as regular expression.
> Shouldn't this throw a "Nested *" exception like ".**" does?
> 
> Examples:
> 
> echo match("abc", "**")
> => 0
> 
> echo match("abc", ".**")

I believe this is a special case, that is mentioned at :h  /star
,----
|      Exception: When "*" is used at the start of the pattern or just 
|      after "^" it matches the star character.
`----

which means you have been searching for the equivalence of /\** (zero or 
any number of stars) and matches everywhere.

regards,
Christian
-- 

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

To unsubscribe, reply using "remove me" as the subject.

Raspunde prin e-mail lui