unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* RegExp: match everything except a certain string
@ 2007-11-20 16:08 Sven Bretfeld
  2007-11-20 17:50 ` Andreas Röhler
       [not found] ` <mailman.3839.1195580948.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Sven Bretfeld @ 2007-11-20 16:08 UTC (permalink / raw)
  To: help-gnu-emacs


[-- Attachment #1.1: Type: text/plain, Size: 694 bytes --]

Hello to all

A RegExp beginner's question again. I cannot find a way to search for
a regexp that matches everything except of one certain string. The
problem is:

 author = {somename},
 editor = {},
 title = {sometitle},
 subtitle = {},
 series = {},
 url = {}

I want to find a regexp that matches every line with empty {} except
of the "subtitle line". I've come that far:

^ \<[^s].* = {},*

But this one also excludes the "series line", of course. I was
thinking of \<[^s][^u] but this doesn't work, since, then, the initial
s of "subtitle" is matched again.

What is the syntax for find .* except of the string "subtitle"? I
didn't recognize this in the Lisp info.

Thanks for help

Sven

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

end of thread, other threads:[~2007-11-30 16:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-20 16:08 RegExp: match everything except a certain string Sven Bretfeld
2007-11-20 17:50 ` Andreas Röhler
2007-11-20 20:36   ` Sven Bretfeld
2007-11-20 21:05     ` Lennart Borgman (gmail)
2007-11-20 21:31       ` Sven Bretfeld
     [not found]   ` <mailman.3846.1195590989.18990.help-gnu-emacs@gnu.org>
2007-11-28 16:19     ` Sven Utcke
2007-11-28 21:22       ` Malte Spiess
     [not found] ` <mailman.3839.1195580948.18990.help-gnu-emacs@gnu.org>
2007-11-30 16:26   ` Stefan Monnier

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).