title: Split URL with regex
body: <p>I'm trying to get two inputs from a URL into a view by using regular expressions.</p>
  
  <p>my urls.py line looks like this</p>
  
  <pre><code>(r'^blog/(?P&lt;match&gt;.+)/', 'blog.views.blog'),
  </code></pre>
  
  <p>and this is my view</p>
  
  <pre><code>def blog(request, match):
      pieces = match.split('/')
  </code></pre>
  
  <p>However, if my URL is "root.com/blog/user/3" <code>pieces</code> only returns <code>[user]</code>.</p>
  
  <p>In order for <code>pieces to return</code>[user],[3]` a trailing slash has to be added to my URL: "root.com/blog/user/3/" </p>
  
  <p>And as far as I know and according to my Python shell, the first URL should have returned <code>[user],[3]</code></p>
  
  <p>Am I missing something? Or does Django actually split strings differently from Python?</p>