Regular Expression in Django URLs : <p>i am trying to add url to my view but it throws an exception </p>

<p>"^(?p[0-9]+)/$" is not a valid regular expression: unknown extension ?p at position 2</p>

<p>view url in URLs file</p>

<pre><code>url(r'^(?p&lt;studentID&gt;[0-9]+)/$',views.Student,name ='Student' )
</code></pre>
