On Oct 20, 5:02 pm, Hraban Luyat <[email protected]> wrote:
> On Tue, Oct 20, 2009 at 07:53 -0700, Alessandro Agosto wrote:
>
> > Hi everyone,
> > today while i was writing my application, I am aware that using a URL
> > like '/s' another URL that can be '/search' does not work.
>
> > This is my urls scheme:
> > urls = (
> >     '/(.*)/','Redirect',
> >     '/', 'Home',
> >     '/s', static.app_static, #it handle request for static contents
> >     '/search', 'Search', # this url does not work
> >     '/favicon.ico', 'Favicon'
> >     )
>
> > How I can solve?
>
> > Thank you,
> > Greetings.
>
> The URL matchers are regular expressions that are matched against the
> start of the URL. To exlicitly indicate an end (in any regular
> expression, this is not web.py specific) of the match, you need the '$'
> character: '/s$'.
>
> Greetings,
>
> Hraban Luyat

Thanks for your reply.
I see, but if I add $ after /s, it is not working -because the url is
not finished there, but use a subapplication mapping: /s/js or /s/css
not /s.
If i put $ after a url such as /search or / it is working.

I'm not skilled with regex but I understood :)

Greetings,
Alessandro Agosto.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to