Split a String by Multiple Characters

Using str.split only allows you to split a string by one character. If you want to split a string by multiple characters, use re.split().

re uses regrex to split the string.

My previous tips on Python string.

Scroll to Top