I've just created a url pattern entry to route things to my registration view but the parameter is not being passed at all even though it's clearly in the URL. 

My URL pattern:

```
url(r'^register/(?P<profile_type>\w+/?$)', 'userProfile.views.register'),

```

My view definition:

```
def register(request, profile_type=None):

```

The URL I try to load (not the real one, but an example):

```
http://example.com/register/user

```

When I set a pdb breakpoint right at the beginning of the view, profile\_type is None, but the url is <http://example.com/register/user>

I tried running re.match to see if the regex was wrong, and I got the following:

```
match = re.match(r'^register/(?P<profile_type>\w+/?$)', 'register/user')
match
<_sre.SRE_Match object at 0x1004d48a0>
match.groupdict()
{'profile_type': 'user'}

```

Clearly the regex is matching the 'user' part of the URL but it's not getting passed. I would love some help with this. 

The urls.py contains other patterns that are similar, and these patterns are working properly:

```
url(r'^user/(?P<profile_id>\d+/?$)', 'userProfile.views.registeredUser'),

```

The view is in the right place and is being called correctly but the parameter is not being passed. 

Actually, I have a prior pattern in the file that looks like this:

```
url(r'^register', 'userProfile.views.register'),

```

I think that's getting called before the second pattern and messing things up...