[pypy-issue] Issue #1821: Regular expression doesn't find Unicode character (but works in CPython) (pypy/pypy)
Andreas Sommer
issues-reply at bitbucket.org
Tue Jul 22 13:54:31 CEST 2014
New issue 1821: Regular expression doesn't find Unicode character (but works in CPython)
https://bitbucket.org/pypy/pypy/issue/1821/regular-expression-doesnt-find-unicode
Andreas Sommer:
Found this different behavior between pypy3 2.3.1 and CPython 3.3.0:
```
#!python
Python 3.2.5 (986752d005bb, Jun 19 2014, 21:38:38)
[PyPy 2.3.1 with MSC v.1500 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>> import re
>>>> re.compile(r'^[\u4e2d\u6587]*$').match('\u4e2d\u6587')
>>>>
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.compile(r'^[\u4e2d\u6587]*$').match('\u4e2d\u6587')
<_sre.SRE_Match object at 0x028B7988>
>>>
```
More information about the pypy-issue
mailing list