Wednesday, August 26, 2009

Non-greedy Character Class

This works:

[^ ]\+

But this doesn't:

[^ ]\{-1,}

Ie. one or more non-spaces, non-greedy.

What am I doing incorrectly? :)

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

No comments: