On Wed, 31 Oct 2007 15:38:34 -0000 cjl <[EMAIL PROTECTED]> wrote: > > I know next-to-nothing about regular expressions, so I apologize in > advance if my question is stupid. I am trying to match a slug field. > Is there any difference between: > > r'^accounts/(?P<slug>[\w-]+)/$' > > and > > r'^accounts/(?P<slug>[-\w]+)/$' > > Will these two regular expressions match the same strings? The both > seem to work for me, but I couldn't find any information about the > importance of order between square brackets. > > -cjl > > > --~--~---------~--~----~------------~-------~--~----~ > 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 > -~----------~----~----~----~------~----~------~--~--- > they match the same.
greetz Paul Rauch
signature.asc
Description: PGP signature