I have a string :
string = 'i-phone is popular - many people like it (user-friendly system, fast, good support)'
How to use regular expression to split it as:
split_string = ['i-phone', 'is', 'popular', 'many', 'people', 'like', 'it', 'user-friendly', 'system', 'fast', 'good', 'support']
The problem is that -
contains 2 spaces and 1 hyphen.
I tried: split_string = re.split('[() - ]', string) but I got:
['i-phone', 'is', 'popular', '-', 'many', 'people', 'like', 'it', '', 'user-friendly', 'system,', 'fast,', 'good', 'support', '']
Thanks.