On 1/30/07, johnny <rampeters gmail.com> wrote:
> What does [-w]+ and [_w]+ in the following:
> (?P<category>[-w]+)
> (?P<username>[_w]+)
They allow you to use different types of slugs.
For example:
/news/2007/jan/30/this-is-my-story/
The regular expression 'w+' won't match the
'this-is-my-story' bit,
but '[-w]+' will.
--
"Bureaucrat Conrad, you are technically correct -- the
best kind of correct."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|