On Wed, 2009-07-29 at 23:03 +0300, Leon Waldman wrote:
>
> Why it not werked before?
The first part of the URL-class pair is a python regular expression.
Brackets ( and ) are used to capture the parts of the string you are
interested in, and those are passed as arguments to the GET and POST
methods.
Here's a quote from the docs:
(...)
Matches whatever regular expression is inside the parentheses,
and indicates the start and end of a group; the contents of a
group can be retrieved after a match has been performed, and can
be matched later in the string with the \number special
sequence, described below. To match the literals '(' or ')', use
\( or \), or enclose them inside a character class: [(] [)].
http://docs.python.org/library/re.html
Best regards,
--
Branko
eml: [email protected]
alt: [email protected]
blg: http://sudologic.blogspot.com/
img: http://picasaweb.google.com/bg.branko
twt: http://www.twitter.com/foxbunny/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---