I just wondering how 'second empty string' came up in the result. could anyone tell me what's happened step by step?
>>> re.split(r'\W*', '...words...')
['', '', 'w', 'o', 'r', 'd', 's', '', '']
If i'm not wrong, first empty match is because of this sentence from python re module document:
If it matches at the start of the string, the result will start with an empty string. The same holds for the end of the string
