I am not very good with regular expression.
I have a string like:
var bigString = 'abc,xyz,def';
I want to create a regular expression that it looks for either preceding commas or comma at the end.
e.g:
Valid expressions will be :
abc,
,xyz,
,def
I will appreciate any kind of help.
Well that regex would be: