help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

regexp question: match anything but not a group?


From: Thorsten Jolitz
Subject: regexp question: match anything but not a group?
Date: Tue, 01 Apr 2014 23:30:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]