unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* swbuff & regular expressions question
@ 2004-12-23 23:38 Dreamer
  2004-12-26 21:55 ` Kai Grossjohann
  0 siblings, 1 reply; 2+ messages in thread
From: Dreamer @ 2004-12-23 23:38 UTC (permalink / raw)



I'm using emacs together with swbuff extension.
In swbuff you can declare excluding list.
I've defined:
(setq swbuff-exclude-buffer-regexps '("^ " "\\*.*\\*" "TAGS*"))

i want to improve "\\*.*\\*" that says do not include files that beging
and end with stars to do the same but exclude Man files (which looks
like *Man XXX*).

can someone write me the regular expression that will filter all
*something* but except *Man something*???

thanks alot

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: swbuff & regular expressions question
  2004-12-23 23:38 swbuff & regular expressions question Dreamer
@ 2004-12-26 21:55 ` Kai Grossjohann
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Grossjohann @ 2004-12-26 21:55 UTC (permalink / raw)


"Dreamer" <fat_carlos@hotmail.com> writes:

> can someone write me the regular expression that will filter all
> *something* but except *Man something*???

What should the regexp match?  List the positive cases:

*, then up to four characters, then *
*, then a character that isn't M, then anything, then *
*M, then a character that isn't a, then anything, then *
*Ma, then a character that isn't n, then anything, then *

I think you can complete the list yourself.

Kai

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-26 21:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-23 23:38 swbuff & regular expressions question Dreamer
2004-12-26 21:55 ` Kai Grossjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).