On Wed, May 14, 2008 at 9:43 AM, Lalit Kapoor <[EMAIL PROTECTED]> wrote:
>
> Is there a way to reorder the data passed into the functions.
>
> For example:
>
> In my urls I have: '/(.*)/css/(.*)', 'css'
change your url pattern to /?(.*)/css/(.*)
>>> re.match('/?(.*)/css/(.*)', '/css/a.css').groups()
('', 'a.css')
>>> re.match('/?(.*)/css/(.*)', '/foo/css/a.css').groups()
('foo', 'a.css')
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---