Re: regex @vim, negating a group

2006-05-04 Thread Matthew Winn
On Thu, May 04, 2006 at 08:56:41AM +0300, Yakov Lerner wrote: > 3) The 'old' way. That's what I'd use before the \@ stuff to match > words not ending with 'ion': > >/\<\(\w*[^n]\|\w*[^o]n\|\w*[^i]on\)\> Not much fun if you want to match all words not ending in "ification". :-) This is where n

Re: regex @vim, negating a group

2006-05-03 Thread Yakov Lerner
On 5/2/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: Pattern /\i\+\(ion\)\@/ matches words that do not end with 'ion' Two more ways to match words not ending with 'ion': 2) This pattern also matches words not not ending with 'ion': \<\(\w*ion\>\)[EMAIL PROTECTED] 3) The 'old' way. That'

Re: regex @vim, negating a group

2006-05-03 Thread Yakov Lerner
Daniel Einspanjer <[EMAIL PROTECTED]> wrote: The docs in :help /[EMAIL PROTECTED] answer this query pretty well. Reminds me. Professor gives a lecture in mathematics. At some point he says "From this it obviously follows .." and writes long something that does not resemble anything he's writte

Re: regex @vim, negating a group

2006-05-03 Thread Daniel Einspanjer
On Tue, May 02, 2006 at 08:27:49PM +0300, Yakov Lerner wrote: BTW, can anyone explain why this pattern does *not* work, does not match words that do not end with 'ion' : /\i\+\(ion\)[EMAIL PROTECTED]/ I thought this pattern would match words not ending with 'ion'. But it matches all words, inc

Re: regex @vim, negating a group

2006-05-03 Thread Matthew Winn
On Tue, May 02, 2006 at 02:03:47PM -0400, James Vega wrote: > On Tue, May 02, 2006 at 08:27:49PM +0300, Yakov Lerner wrote: > > On 5/2/06, o1792 <[EMAIL PROTECTED]> wrote: > > BTW, can anyone explain why this pattern does *not* > > work, does not match words that do not end with 'ion' : > >/\i\

Re: regex @vim, negating a group

2006-05-02 Thread James Vega
On Tue, May 02, 2006 at 08:27:49PM +0300, Yakov Lerner wrote: > On 5/2/06, o1792 <[EMAIL PROTECTED]> wrote: > BTW, can anyone explain why this pattern does *not* > work, does not match words that do not end with 'ion' : >/\i\+\(ion\)[EMAIL PROTECTED]/ > I thought this pattern would match words

Re: regex @vim, negating a group

2006-05-02 Thread Yakov Lerner
On 5/2/06, o1792 <[EMAIL PROTECTED]> wrote: Hi vimmers, When searching through text files using regex, I am trying unsuccessfully to negated a complicated pattern without success. What doesn't help is the double usage of the circumflex ^ character (may also be called caret, not sure), because i

Re: regex @vim, negating a group

2006-05-02 Thread Gerald Lai
On Tue, 2 May 2006, o1792 wrote: [snip] if you want to find anything that is not any word ending in "ion", well the regex group you're looking at is \(\<.\+ion\>\), but how do you negate that? Put it all in square brackets and provide a caret ^ at the beginning? Nope. in fact group within square

Re: regex @vim, negating a group

2006-05-02 Thread Charles E Campbell Jr
o1792 wrote: Hi vimmers, When searching through text files using regex, I am trying unsuccessfully to negated a complicated pattern without success. ...snip... May I suggest that you look into LogiPat, http://vim.sourceforge.net/scripts/script.php?script_id=1290 which is useful for se

regex @vim, negating a group

2006-05-02 Thread o1792
Hi vimmers, When searching through text files using regex, I am trying unsuccessfully to negated a complicated pattern without success. What doesn't help is the double usage of the circumflex ^ character (may also be called caret, not sure), because it also means start of a line. However when