Wednesday, August 26, 2009

Re: Non-greedy Character Class

> This works:
>
> [^ ]\+
>
> But this doesn't:
>
> [^ ]\{-1,}
>
> Ie. one or more non-spaces, non-greedy.
>
> What am I doing incorrectly? :)

I'm not sure what you mean that the 2nd one doesn't work. I just
tried it and it found a single non-space character (which is as
few as it could find non-greedily).

-tim


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: