Ответ на сообщение «What's the simplest way to do this search?», присланное в 16:21:09 05 августа 2010, Четверг, отправитель Xell Liu:
I am surprised that nobody mentioned negative look-behind (/[a...@![[:alnum:]]). Unlike '\&', it is available in all perl-like regex engines (via (?!)), so you will not restrict your regex experience to vim. Текст сообщения: > 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
signature.asc
Description: This is a digitally signed message part.
