regex - Need help with regular expression -
i using django application , needed pattern matching
pattern matched: users/?q=john regular expression : '^users/\?q\=(?p[\w]+)[/]?$'
like in urls.py
url(r'^users/\?q\=(?p[\w]+)[/]?$', user_handler, {'emitter_format' : 'json'})
however it's not matching url, pointers helpful.
thanks
in cgi, after ? put request.get , not url matching - take here:
in handler (user_handler
), can use:
request.get['q']
to john
above sample url.
Comments
Post a Comment