[Dancer-users] Routes with captures
Alexis Sukrieh
sukria at sukria.net
Mon May 31 13:15:11 CEST 2010
Hi,
Just a global remark about that: r('') is *not* similar to qr// :
It's pseudo-regexps, not real ones: all slashes are automatically
escaped so you can write:
r('/stuff/(.*+))
which would be equivalent to:
qr/\/stuff\/(.*+)/
This is very convinient when writing path patterns.
this being said, I can clearly see why you want support for real Perl
regular expression in Dancer patterns, and I see no reason why we should
not let the user use them.
So I would vote for applying your patch, but without replacing r('')
which has a good reason to live, I think.
--
Alexis Sukrieh
More information about the Dancer-users
mailing list