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

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

Re: regexp question: match anything but not a group?


From: Thorsten Jolitz
Subject: Re: regexp question: match anything but not a group?
Date: Thu, 03 Apr 2014 21:32:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> You need look-ahead-assertions, which aren't implemented in Emacs AFAIK.
>
> Actually, what he needs is negation.  In Perl regexp, negation is
> provided via look-ahead assertions, but in lex.el, they're provided as the
> "normal negation operator".  I.e. in lex.el (negate RE) is a regular
> expression which matches any string not matched by RE.

Very useful, thanks, I just installed lex.el.

-- 
cheers,
Thorsten




reply via email to

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