[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch for lookaround assertion in regexp
From: |
Nikolai Weibull |
Subject: |
Re: Patch for lookaround assertion in regexp |
Date: |
Tue, 24 Jan 2012 16:09:36 +0100 |
On Tue, Jan 24, 2012 at 15:40, Stefan Monnier <address@hidden> wrote:
>> As an alternative to PCRE, which, as has already been pointed out,
>> doesn’t match any of these requirements, how about RE2?
>> http://code.google.com/p/re2/
>> It’s written in C++, which is a minus, but it should be simple enough
>> to extend it with \c and \s.
> That might work, indeed (tho someone still has to write the
> corresponding code).
> Note that it does not support lookaround assertions.
True, but you can, as far as I know, not do so without (allowing for)
exponential behavior.
I don’t want to detract from the merits of lookaround assertions (or
start a discussion on the subject), but I’ve always found them to be a
sign of improper use of (no longer) regular expressions.
- Re: Patch for lookaround assertion in regexp, (continued)
- Re: Patch for lookaround assertion in regexp, Stefan Monnier, 2012/01/23
- Re: Patch for lookaround assertion in regexp, Tom, 2012/01/23
- Re: Patch for lookaround assertion in regexp, Andreas Schwab, 2012/01/23
- Re: Patch for lookaround assertion in regexp, Tom, 2012/01/23
- Re: Patch for lookaround assertion in regexp, Andreas Schwab, 2012/01/23
- Re: Patch for lookaround assertion in regexp, Stefan Monnier, 2012/01/23
- Re: Patch for lookaround assertion in regexp, Štěpán Němec, 2012/01/23
- Re: Patch for lookaround assertion in regexp, Stefan Monnier, 2012/01/23
Re: Patch for lookaround assertion in regexp, Nikolai Weibull, 2012/01/24
Re: Patch for lookaround assertion in regexp, David De La Harpe Golden, 2012/01/24
Re: Patch for lookaround assertion in regexp, Nikolai Weibull, 2012/01/25