Multisplit: Difference between revisions
Content deleted Content added
→{{header|Python}}: New Python version. |
|||
Line 70: | Line 70: | ||
>>> ms(txt="a!===b=!=c", sep=["=", "!=", "=="]) |
>>> ms(txt="a!===b=!=c", sep=["=", "!=", "=="]) |
||
['a', [1, 1], '', [0, 3], '', [0, 4], 'b', [0, 6], '', [1, 7], 'c']</lang> |
['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''' |
'''Alternative version''' |