[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch for lookaround assertion in regexp
From: |
Juri Linkov |
Subject: |
Re: Patch for lookaround assertion in regexp |
Date: |
Mon, 30 Jan 2012 02:31:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (x86_64-pc-linux-gnu) |
> OTOH using something like PCRE would finally fix the currently erroneous
> implementation of classes like [:space:], which now is the same as \s-.
> (And personally I would gladly forgo the syntax categories for standard
> [:classes:], although I imagine the former might be used by the
> font-locking or somewhere... I never felt the need for them.)
`pcrecallout' could help to translate \c and \s to PCRE.
>From `man pcrecallout(3)':
PCRE provides a feature called "callout", which is a means of
temporarily passing control to the caller of PCRE in the middle of
pattern matching. The caller of PCRE provides an external function
by putting its entry point in the global variable pcre_callout. By
default, this variable contains NULL, which disables all calling out.
Within a regular expression, (?C) indicates the points at which the
external function is to be called. Different callout points can be
identified by putting a number less than 256 after the letter C.
For example, this pattern has two callout points:
(?C1)abc(?C2)def
- Patch for lookaround assertion in regexp, Colin Fraizer, 2012/01/23
- 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,
Juri Linkov <=
- 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