Django url pattern - string parameter
django, python, regex
Solution
Depends on what characters you care about. Like the docs say, `\w` will give you an alphanumeric character or an underscore.
Problem
Django url pattern that have a number parameter is: ``` url(r'^polls/(?P<poll_id>\d+)/$', 'polls.views.detail') ``` What will be the correct syntax if my poll_id is not a number but a string of character?