I have a textarea field on my webpage. I am accepting the user input, I want to parse that user input for "(SEPARATED BY COMMAS, SPACES, OR ONE PER LINE)" this line.
Basically I want to fetch the words, seprated by comma, space or one per line. What can be the RegEx for this which I can use like below:
preg_split('/[,; " "]+/', $_tags);
I am already using a regEx to separate tags entered by the user. What will be the regEx to fetch word from a string which are "(SEPARATED BY COMMAS, SPACES, OR ONE PER LINE)"
Thanks