Filter a complicated string containing email addresses using jquery (Get string containing email addresses split by one or more commas) : I need to split a specific string by a single comma containing email addresses.
The string can be complicated like `"abc@xyz.com,xyz@xyz.com,,,pqr@xyz.com,,,,123@xyz.com,"`

And preferred output is as follows `"abc@xyz.com,xyz@xyz.com,pqr@xyz.com,123@xyz.com"`

I tried using jquery `split()` but cannot find a proper way of doing this