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: Stefan Monnier
Subject: Re: regexp question: match anything but not a group?
Date: Thu, 03 Apr 2014 10:37:50 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

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


        Stefan




reply via email to

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