a regular expression problem

lookon areyoulookon at gmail.com
Fri Oct 10 12:58:08 CEST 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