[issue14068] problem with re split

Amaury Forgeot d'Arc report at bugs.python.org
Tue Feb 21 11:28:08 CET 2012


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

When you used str split, you had to use a unicode string:
  content.split(u'。')
It's the same with re.split: when I use
  pattern = re.compile('。')
nothing is split, it works much better with:
  pattern = re.compile(u'。')

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14068>
_______________________________________


More information about the Python-bugs-list mailing list