title: Regex for uuid hex value in django urls
body: <p>I am generating a uuid value and want to receive it from url in django, but the regex i am writing is not working and telling me page not found</p>
  
  <pre><code>import uuid
  id = uuid.uuid4().hex
  print id
  be00e546822945bbb193b4ed80149c35
  </code></pre>
  
  <h2>urls.py</h2>
  
  <pre><code>urlpatterns = [
         url(r'^users/(?P&lt;user_id&gt;[0-9a-f]{32}\Z)/$', UserDetails.as_view(), name = 'users_detail'),
  ]
  </code></pre>
  
  <h2>Result:</h2>
  
  <pre><code>"GET /users/be00e546822945bbb193b4ed80149c35/ HTTP/1.1" 404 3302
  </code></pre>
  
  <p>So what would be the correct regex for uuid hex value in urls.py ?</p>