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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -