I was looking at the code in Django, framework in Python, and I came across the following code in the file urls.py
.
urlpatterns = [
url(r'^articles/2003/$', views.special_case_2003),
url(r'^articles/([0-9]{4})/$', views.year_archive),
url(r'^articles/([0-9]{4})/([0-9]{2})/$', views.month_archive),
url(r'^articles/([0-9]{4})/([0-9]{2})/([0-9]+)/$', views.article_detail),
]
I did not really understand what this stretch would be
r'^articles/2003'
What is this r
that precedes the declaration of string ?
Is it something related to regular expressions?