[docs] [issue37620] str.split(sep=None, maxsplit=-1,any=False)

Serhiy Storchaka report at bugs.python.org
Fri Jul 19 14:34:56 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

An alternative is to use regular expressions. 

>>> re.split('[\t ]+', 'ab\t cd ef')
['ab', 'cd', 'ef']
.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37620>
_______________________________________


More information about the docs mailing list