On Fri, Oct 23, 2009 at 11:00 PM, mdipierro <[email protected]> wrote:
>
> You can also use $a, $b, $whatever to match any sequence of
> alphanumeric chars
>
which has the obvious limitation of $whatever not being able to match
${what}ever (to borrow shell syntax), so be aware that if you need that you
can revert to REGEX syntax (or submit a patch to add shell syntax grouping
;-)).
- Yarko
>
> On Oct 23, 10:54 pm, JorgeRpo <[email protected]> wrote:
> > cool
> >
> > I am not that into reg exp.
> >
> > Nice feature.
> >
> > On Oct 23, 10:46 pm, mdipierro <[email protected]> wrote:
> >
> > > there is something new in trunk that I forgot to mention.
> >
> > > I get annoyed by things like this in routes (not readable)
> >
> > > routes_in=[('/(?P<a>.*)','/myapp/\g<a>')]
> >
> > > so now you can do
> >
> > > routes_in=[('/$anything','/myapp/$anything')]
> >
> > > $anything is a keyword that matches everything until the end of the
> > > incoming URL.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---