views:

82

answers:

2

I need a regexp for a URL like:

/slug/#slug/slug/

I know it should be something like:

r'^(?P<slug1>[-\w]+)/#(?P<slug2>[-\w]+)/(?P<slug3>[-\w]+)/$'

But I am having problems with the character #

+5  A: 

Parameter after # character is not send to server, so cannot catch in server side script like django.

S.Mark
+2  A: 

The URL fragment (everything after the #) is not sent to the server in a request.

Ignacio Vazquez-Abrams