= Remove all commas between quotes vim =
I needed a way to clean up data in a CSV files where numbers contained commas. This is what I came up with:
:%s/".\{-}"/\=substitute(submatch(0), ',', '' , 'g')/g
░█▀▀▄░█░█░█▀█░█▀▀▄░█░░▄▀▀▄░█▀▀▀ ░█▀▀▄░▄▀▄░▒▄▀░█▀▀▄░█░░█░░█░█░▀▄ ░▀▀▀▀░▀░▀░█▄▄░▀▀▀▀░▀▀░░▀▀░░▀▀▀▀
I needed a way to clean up data in a CSV files where numbers contained commas. This is what I came up with:
:%s/".\{-}"/\=substitute(submatch(0), ',', '' , 'g')/g