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.*)$\'>
.*)$\'>
supress the regex metacharacters with []
[]
>>> s '/?code=authenticationcode' >>> r=re.compile(r'^/[?]code=(.+)') >>> m=r.match(s) >>> m.groups() ('authenticationcode',)