I have a string like this:
const test = 'a,b,c,d'
I want to have:
a, b, c and d // each comma has an extra space at right
I tried some regex like:
test.replaceAll(',', ', ').replace(/,([^,]*)$/, '$1');
But that will remove last occurence, how could I change it for another string, in this case with and ?