Thread View: news.software.nn
3 messages
3 total messages
Started by jcw
Thu, 15 Sep 1994 03:33
How to NOT select articles that match regexp
Author: jcw
Date: Thu, 15 Sep 1994 03:33
Date: Thu, 15 Sep 1994 03:33
18 lines
1521 bytes
1521 bytes
When ever I read the comp.editors group I always use '=vi' to automatically select all articles about vi. However, that regexp matches vim. I don't care to read about vim. Is there a negate regexp I can use to de-select all articles with 'vim' in the subject line? I've tried '^vim' and '!vim', but no luck. Any suggestions? Please follow up via mail and if anyone comes up with a good answer, I'll post a summary. thx.. -- J.C. Webber III jcw@mti.sgi.com jcw@isdn-jumper.corp.sgi.com (home) Systems Administrator email beeper: jcw_p@mti.sgi.com Silicon Graphics, Inc Tel (415)390-4120 Fax (415)390-6174 "Comparing Dos to UNIX is like comparing a mix-master to a chef's kitchen"
Re: How to NOT select articles that match regexp
Author: Sven Guckes
Date: Thu, 15 Sep 1994 14:40
Date: Thu, 15 Sep 1994 14:40
20 lines
1553 bytes
1553 bytes
jcw@mti.sgi.com () writes: >When ever I read the comp.editors group I always use '=vi' to automatically >select all articles about vi. However, that regexpmatches vim. >I don't care to read about vim. You should. Multiple level undo and ":help" command alone are worth it. >Is there a negate regexp I can use to de-select all articles with 'vim' >in the subject line? I've tried '^vim' and '!vim', but no luck. You should select all lines containing "'vi' not followed by 'm'": vi[^m] Remember to tell nn that you are using a regexpr: = / <pattern> <return> >Please follow up via mail and if anyone comes up with a good answer, >I'll post a summary. Sven
Re: How to NOT select articles that match regexp
Author: Gothick
Date: Thu, 22 Sep 1994 19:24
Date: Thu, 22 Sep 1994 19:24
29 lines
2080 bytes
2080 bytes
jcw@mti.sgi.com () writes:
>When ever I read the comp.editors group I always use '=vi' to
>automatically select all articles about vi. However, that regexp
>matches vim. I don't care to read about vim. Is there a negate regexp
>I can use to de-select all articles with 'vim' in the subject line?
>I've tried '^vim' and '!vim', but no luck. Any suggestions?
Well, '^vim' matches beginning-of-line followed immediately by 'vim' ('^'
means beginning of line, '$' means end -- this is why in nn to go to the
beginning of an article is '^', to the end is '$'). '!vim' will match
'!vim', as far as I know.
To combine your two questions, try searching for 'vi[^m]' (ie do =vi[^m]) --
this will match the string 'vi' only as long as it isn't followed by the
character 'm'. Should be just what you need -- I just tried it on
comp.editors and it seems to work.
It surprises me that someone so interested in VI would not know a lot about
the regular expressions ;-)
Cheers,
Matt
--
Matthew B. M. Gibson: ______
gothick@dcs.warwick.ac.uk - csudo@csv.warwick.ac.uk \ __/_
"Aah... Yes, and how does madam wish to pay?" -- Iain Banks \ \/ /
She slapped her credit card on the counter. "Eventually." \/\/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads