|
From: | Arthur Maciel |
Subject: | Re: [Chicken-users] Regexp egg compilation error |
Date: | Tue, 13 Mar 2012 18:17:48 -0300 |
Hi Arthur,
Both regex and irregex should work. Here's an example:
On Tue, 13 Mar 2012 00:54:53 -0300 Arthur Maciel <address@hidden> wrote:
> Well, now it I get another question: does awful egg accepts irregex syntax
> instead of regex egg one? The documentation still suggests the use of regex
> egg.
(use awful irregex)
(define-page (irregex '(seq "/foo/" (+ numeric)))
(lambda (path)
path))
http://<server>:<port>/foo/4 displays `/foo/4'
http://<server>:<port>/foo/bar produces a 404 error
Thanks for pointing that omission in the documentation. I'm gonna fix
that.
Best wishes.
Mario
--
http://parenteses.org/mario
[Prev in Thread] | Current Thread | [Next in Thread] |