Anonymous user
Multisplit: Difference between revisions
→{{header|Python}}
(→{{header|Python}}: New Python version.) |
|||
Line 70:
>>> ms(txt="a!===b=!=c", sep=["=", "!=", "=="])
['a', [1, 1], '', [0, 3], '', [0, 4], 'b', [0, 6], '', [1, 7], 'c']</lang>
Small inaccuracy in the version above: ms("", ["="]) outputs [] instead of [''].
'''Alternative version'''
|