title: Why is this regex code not working
body: <p>Working on a Django app </p>
  
  <p>Here's my urls.py</p>
  
  <pre><code>urlpattterns = [url(r'^(?P&lt;leagueId&gt;[0-9]+)/(?P&lt;year&gt;[0-9]+)/(?P&lt;team&gt;[\S]+)/$', views.team_detail, name="team_detail"),]
  </code></pre>
  
  <p>An example url would be along the lines of:</p>
  
  <pre><code>http://localhost:8000/123456/2017/Johnny%20Rocket/
  </code></pre>
  
  <p>I tried playing around with Pythex, but I couldn't get the urls to match</p>
  
  <p>Note: The variables passed are /{number}/{year}/{name}</p>
  
  <p>The name can consist of alphanumeric characters and whitespaces.</p>