from re import compile as _Re
_unicode_chr_splitter = _Re('(?s)((?:[\\ud800-\\udbff][\\udc00-\\udfff])|.)'
    ).split
How to do a Python split() on languages (like Chinese) that don't use whitespace as word separator?