How can I look for '?' in the url mapping regex. I tried to escape it
using \? but it seems web.py further escapes the \ by writting \\?.
Here is my code:
import web
urls = (
'/search\?', 'search',
)
class search:
def GET(self):
print 'hello'
if __name__ == '__main__':
web.run(urls, web.reloader)
Printing the web.py mapping gives:
('/search\\?', 'search')
Looking up for the url .../search? gives not found. Interestingly the
web.py url mapping for (search\d+, search) gives (search\\d+, search)
but looking for the url .../search23 works.
Thank you,
Alex
URLS = ('/search', 'Search', ....)
class Search:
def GET(self):
i = web.input()
q = i.q;
# q = 'hello'
--
David Terrell
d...@meat.net
((meatspace)) http://meat.net/