I have an url like -
...poll/3/what's-up?
In urlpatterns
, I am checking for any kind of string for question text with following code -
url(r'^poll/(?P<question_id>[0-9])/(?P<question_text>.+)', views.question_details),
After debugging i see it returns in view -
question_text = what's-up
but not
question_text = what's-up?
I think this is my regex
implementation issue.