On Thu, 2010-08-05 at 20:21 +0800, Xell Liu wrote: > Hi all, > > For example, when I want to search all letters and digits (i.e. all > [:alnum:] ) except the two letters "a" and "b" (without quotes), how > should I do that instead of stupidly enumerating all the characters I > want? > > The real question I want to ask is: > 1. The items I want to include in search are too many to enumerate > them manually, like [\x00-\xff]; > 2. The items I want to exclude are very few; > What's the simplest way to write the search regular expression? > > Thanks very much! > > Regards, > Xell >
/[^ab] works for me ( if the above matches A and B, then also do :set noic ) -- You received this message from the "vim_use" 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
