[cl-ppcre-devel] Buffered multi-line question
Edi Weitz
edi at agharta.de
Thu Oct 14 12:53:50 UTC 2004
On Thu, 14 Oct 2004 10:46:56 +0200, Sébastien Saint-Sevin <seb-cl-mailist at matchix.com> wrote:
> I'm not sure to fully understand what you mean. I've coupled filter
> with registers coz I plan to use it at multiple places in the regex.
Yes, but the coupling with registers is costly if your filter doesn't
use registers.
> Ex: If I use two dictionaries, I can say (regex string in double
> quote (no parse tree here)).
>
> (:sequence
> (:register "\b\w+\b")
> (:filter 1 check-dic1)
> " *[0-9]{5} *"
> (:register "\b\w+\b")
> (:filter 2 check-dic2))
>
> This would match the full string that consists of two words that are
> in my dictionaries and that are separated by
> space(s)-fivedigits-space(s). Plus, I can extract via registers the
> two elected values.
I've just released a new version which implements a filter variant
that should enable you to do this as well. These filters are also
(hopefully) properly integrated into the optimization process.
Thanks for urging me to do this... :)
Cheers,
Edi.
More information about the Cl-ppcre-devel
mailing list