1
Good evening, I need to receive a string via POST, and break it into keywords, but it is possible that the user separates words in three ways: comma(','), empty space(' ') or comma followed by empty space(', ').
I’m thinking of using the method split(), since one of its parameters is a regular expression.
My question is: how would a regular expression consider these conditions? (comma OR empty space OR comma followed by empty space).