On 1/30/07, johnny <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to