this is an example from my string:
and i want my string convert to this:
Comma isn’t a special character in regex, so you can just use
/,/. Add the global flag and you’re done.