<p>I'm writing a url rewrite in django that when a person goes to <a href="http://mysite.com/urlchecker/http://www.google.com" rel="nofollow noreferrer">http://mysite.com/urlchecker/http://www.google.com</a>   it sends the url: <a href="http://ww.google.com" rel="nofollow noreferrer">http://ww.google.com</a> to a view as a string variable. </p>

<p>I tried doing:</p>

<pre><code>(r'^urlchecker/(?P&lt;url&gt;\w+)/$', 'mysite.main.views.urlchecker'),
</code></pre>

<p>But that didn't work. Anyone know what I'm doing wrong?</p>

<p>Also, generally is there a good resource to learn regular expressions specifically for python/django?</p>

<p>Thanks guys!</p>

Try this instead:
```
(r'^urlchecker/(?P<url>.+)$', 'mysite.main.views.urlchecker'),
```
This differs from yours in that:
It will take anything after 'urlcheck/', not just "word" characters.
It does not force the url to end in a slash.