We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python’s regex module produces unexpected results which makes warifuri fail. Python 3.5 works fine. The fundamental problem can be showed by this:
$ python Python 3.5.0 (default, Sep 20 2015, 11:56:03) [GCC 5.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> print("%4X" % ord('人')) 4EBA >>> re.findall(r'[^\u4E00-\u9FD5]', '人') [] >>> re.findall(r'[\u4E00-\u9FD5]', '人') ['人'] $ python3 Python 3.2.3 (default, Feb 20 2013, 14:44:27) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> re.findall(r'[^\u4E00-\u9FD5]', '人') # doesn’t work as expected ['人'] >>> re.findall(r'[\u4E00-\u9FD5]', '人') # doesn’t work as expected []
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Python’s regex module produces unexpected results which makes warifuri fail. Python 3.5 works fine. The fundamental problem can be showed by this:
The text was updated successfully, but these errors were encountered: