[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
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, 2014/04/03
- Re: regexp question: match anything but not a group?,
Thorsten Jolitz <=
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