Le 28/06/2011 19:44, Chris Withers a écrit :
On 28/06/2011 18:33, Stéphane Klein wrote:
Hi,
I can't use [\w]{8}(-[\w]{4}){3}-[\w]{12} in add_route pattern ?
I'm pretty sure routes are not regex based, so no...
Here :
http://docs.pylonsproject.org/projects/pyramid/dev/narr/urldispatch.html#route-pattern-syntax
there are :
For example, under the hood, the replacement marker {foo} can more
verbosely be spelled as {foo:[^/]+}. You can change this to be an
arbitrary regular expression to match an arbitrary sequence of
characters, such as {foo:\d+} to match only digits.
Routes can use regex.
--
Stéphane Klein <[email protected]>
blog: http://stephane-klein.info
Twitter: http://twitter.com/klein_stephane
pro: http://www.is-webdesign.com
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.