I\'m using Django\'s URLconf, the URL I will receive is /?code=authenticationcode I want to match the URL using r\'^\\?code=(?P.*)$\'>
/?code=authenticationcode
r\'^\\?code=(?P.*)$\'>
.*)$\'>
"How to match the '?', is it special?" Yes, but you are properly escaping it by using the backslash. I do not see where you have accounted for the leading forward slash, though. That bit just needs to be added in:
r'^/\?code=(?P.*)$'
.*)$'