split() methods of "re" module in Python

The "re" module in Python provides regular expression matching operations similar to those found in Perl. Both patterns and strings to be searched can be Unicode strings as well as 8-bit strings. split() – uses a regex pattern to split a given string into a list. example
import re str = "Regular expression test" print(re.split(" +", str))
output
['Regular', 'expression', 'test']