[tbnl-devel] Accessing match information for regex dispatchers?
Edi Weitz
edi at agharta.de
Tue Mar 1 22:32:23 UTC 2005
Hi!
(And thanks for the error handler patch.)
On Tue, 1 Mar 2005 19:11:13 +0100, Stefan Scholl <stesch at no-spoon.de> wrote:
> Would it be bad style or a bad idea to extend
> CREATE-REGEX-DISPATCHER (html.lisp) to hold the result of
> CL-PPCRE:SCAN in variables you then DECLARE as SPECIAL so that the
> called handler function can access the match information?
>
> Something like *MATCH-START*, *MATCH-END*, *REG-STARTS*, and
> *REG-ENDS* just visible for the handler.
I'm not sure if it's bad style but I wouldn't like it. Why would you
need it? The handler has access to the URL anyway.
Cheers,
Edi.
More information about the Tbnl-devel
mailing list