title: Decode url(r'^(?P<pk>[-\w]+)/$') to path() in Django
body: <p>I need to convert the following regular expression using url() method to path() method.</p>
  
  <pre><code>url(r'^(?P&lt;pk&gt;[-\w]+)/$')
  </code></pre>
  
  <p>Thanks and regards.</p>