a regular expression problem

lookon areyoulookon at gmail.com
Fri Oct 10 06:58:08 EDT 2008


I want to use django to dispatch url.
The url is like /test/Google/6,and my patten is r'^/test/(?P<q>\b\W+
\b)/(?P<h>\d+)$'.
It works when the string is English(like Google), but fails when the
string is in foreign language.

Can anyone tell me the righ regular expression?

Thank you!



More information about the Python-list mailing list