re
(https://docs.python.org/3/library/re.html) provides regular expression matching operations similar to those found in Perl.
Usage⚑
Split⚑
To split a string by multiple delimiters, you can do:
import re
re.split('; |, ', "string")
(https://docs.python.org/3/library/re.html) provides regular expression matching operations similar to those found in Perl.
To split a string by multiple delimiters, you can do:
import re
re.split('; |, ', "string")