I use RegExp and \"string\".match very rarely so I\'m not so sure how to use them for some little bit complex things.Here\'s what I would like to do and don\'t know how to d
Simply use RegEx:
\s*,\s*
DEMO