Re: invert the sense of a regex
Status: Beta
Brought to you by:
wayned
From: Kerne F. <tea...@we...> - 2000-08-17 06:41:00
|
Still, questions about your hands, which might one day hold *my* Myst book, are unsettling to me: > Kerne Fahey wrote: > > > I'm curious to know if there's any way to invert the sense of a search, so > > that articles that *don't* match the regex are affected. Would anybody be > > able to tell me how to do that? > > In a kill-file I think you can !/regex/ to select, but this doesn't work > interactively. Hmm. That doesn't seem to work.. (rightly, !/foo/:j would to kill, well, everything but what contained 'foo' in the subject, but it doesn't.) > But since once you've selected messages, you can either delete them or keep > them, I'm not quite sure why it matters. > > What are you trying to do? I need it in general to filter on a heavily-abused ng I read. Inverting the sense of a search seems a fairly basic function. The specific use I first have in mind is killing articles which lack a references header. (Filtering out spam and miscellaneous lusers.. if something is worth reading, somebody will reply to it, and I'll see it then.) -- Kerne Hmm. lists.sourceforge.net pointedly refused to accept this message from itself, continually for five days. Either the lists's down (can't tell; it doesn't get a lot of traffic to begin with), or lists.sourceforge.net doesn't like me since I remailed a message to the list when I'd accidentally mailed it directly to its author. Blah. Give me usenet any day. |