I am new to Python, Django 1.9 and overall regular expressions. So I am trying to write something like this within urls.py
search/doc_name/language/?id
- where
doc_name, allow for any name/case/length etc. like so:'My Fave Doc 12' - where language, allow two letters like so:
'en' - where
id, allows only numbers.
This is what I have, can someone point out where I went wrong?
url(r'^search/[\w-]+/[a-z]{2}+/(?P<id>[0-9]+)$', '....