"|" was used to join  values, so it can be written as
values = re.compile('[^|]+').findall(str(value))

On 8月13日, 下午6时31分, hywang <why00...@163.com> wrote:
> line 268:  values = re.compile('[\w\-:]+').findall(str(value))
>
> if value contains some Chinease charactors , it failed to parse it.
>
> eg:
> value = "|eng|汉字|"
> values = re.compile('[\w\-:]+').findall(str(value))
> print values
>
> #the result is ['eng'], but not ['eng','汉字']

Reply via email to