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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
