>
>
>
>
> ---------- Forwarded message ----------
> From: lookon <[EMAIL PROTECTED]>
> To: python-list@python.org
> Date: Fri, 10 Oct 2008 03:58:08 -0700 (PDT)
> Subject: a regular expression problem
> 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!
>
>
>
> Add:  # -*- coding: utf-8 -*- at the beginning of your script and try
again. This is for handling non-ascii characters.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to