unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* regexp question: match anything but not a group?
@ 2014-04-01 21:30 Thorsten Jolitz
  2014-04-01 23:24 ` Pascal J. Bourguignon
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Thorsten Jolitz @ 2014-04-01 21:30 UTC (permalink / raw)
  To: help-gnu-emacs


Hi List, 

how can I write a regexp that acts like e.g.

,------
| ".*?"
`------

but does not match a group like e.g. 

,---------------------
| (regexp-quote "\\)")
`---------------------

?

This works more or less but does not seem to be very robust

,---------
| "[^)]*?"
`---------

since ')' could appear in other contexts than the group. How can I
negate a specific group of characters and not only any occurence of
single characters?

-- 
cheers,
Thorsten





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

end of thread, other threads:[~2014-04-04 14:11 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 21:30 regexp question: match anything but not a group? Thorsten Jolitz
2014-04-01 23:24 ` Pascal J. Bourguignon
2014-04-03 19:48   ` Thorsten Jolitz
     [not found]   ` <mailman.18864.1396554426.10748.help-gnu-emacs@gnu.org>
2014-04-03 20:24     ` Pascal J. Bourguignon
2014-04-03 21:36       ` Thorsten Jolitz
2014-04-02  5:55 ` Andreas Röhler
2014-04-03 19:36   ` Thorsten Jolitz
2014-04-03 22:19     ` Stefan Monnier
2014-04-04  8:39       ` Thorsten Jolitz
     [not found]       ` <mailman.18896.1396600696.10748.help-gnu-emacs@gnu.org>
2014-04-04  9:04         ` Loris Bennett
2014-04-04  9:37           ` Andreas Röhler
2014-04-04 10:40           ` Thorsten Jolitz
2014-04-04 14:11             ` Andreas Röhler
2014-04-04  6:37     ` Andreas Röhler
2014-04-04  8:53       ` Thorsten Jolitz
2014-04-02  7:21 ` Thorsten Jolitz
2014-04-02  8:07 ` Andreas Röhler
2014-04-03 10:50   ` Thorsten Jolitz
2014-04-03 23:46     ` Bob Proulx
2014-04-04  8:43       ` Thorsten Jolitz
2014-04-03 14:37   ` Stefan Monnier
2014-04-03 19:32     ` Thorsten Jolitz

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