Tried searching for regex found in this answer:
(,)(?=(?:[^']|'[^']*')*$)
I tried doing a search in Sublime and it worked out (around 700 results). When trying to replace the results it runs out of memory. Tried /(,)(?=(?:[^']|'[^']*')*$)
in vim for searching first but it does not find any instances of the pattern. Also tried escaping all the (
and )
with \
in the regex.