Hello I am currently creating a polling system and it is working fine right now using !poll option1 option2 option3 creating 3 different poll options but if I mess up and do something like !poll option 1 option 2 option 3 it will create 6 poll options.
I have been trying to make it so you can include spaces and between every comma is a different option
EX: !poll option 1, option 2, option 3
which should return 3.

I am currently doing this: $regex($2-,/\b\w+\b/g)
Thank you for any help you can provide.