I am expecting a user input string which I need to split into separate words. The user may input text delimited by commas or spaces.
So for instance the text may be:
hello world this is John.
or 
hello    world this     is      John or even 
hello world,    this, is       John
How can I efficiently parse that text into the following list?
['hello', 'world', 'this', 'is', 'John']
Thanks in advance.
 
     
     
     
    