Hi John, The $ at the end of a regular expression means that it is the end of the string and nothing else comes after it.
So '^polls/' would match 'polls/things' where '^polls/$' wouldn't. On a similar note the ^ character means the beginning of a string. On 06/06/2006, at 12:26 PM, John M wrote: > > Ok, so im gong through the turtorial and trying to adopt it to my own > project, and I see this in urlpatterns: > > (r`^polls/$'....), > (r'^polls/(\d+)/$'....) > > how does that differ from > > (r'^polls/'....), > (r'^polls/(\d+)/$'....) > > Note the $ is missing from the first line of the second example. > > When you don't have a $ in the polls/ setup, it doesn't scan down to > the other entries. > > Since I'm so new to python and web stuff, was wondering if anyone > could > explain this. > > Sorry for such a noob question. > > Thanks > > John > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---