Test = ('Divide this; more than, once.') Test.split(';') ['Divide this', ' more than, once.']
but I can't define more than one delimiter like:
Test = ('Divide this; more than, once.') Test.split(';|,') ['Divide this; more than, once.']
It doesn't split at all if I define more than one delimiter.
However, if I import ‘re’ and use that split function I can do:
re.split(';|,', Test) ['Divide this', ' more than', ' once.']
So is it possible to use the ‘hou’ split function set for more than one delimiter? Or is that function have a limited capacity and I just need to import ‘re’ and use that one? (not that it's an issue, just wanting to get some clarification)