[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
Re: regexp question: match anything but not a group?, Andreas Röhler, 2014/04/02
Re: regexp question: match anything but not a group?,
Stefan Monnier <=
Re: regexp question: match anything but not a group?, Pascal J. Bourguignon, 2014/04/03
Re: regexp question: match anything but not a group?, Thorsten Jolitz, 2014/04/03