vim search and replace between number

vim

Solution

You need to capture groups. Try:

:%s/\(\d\)"\(\d\)/\1\2/g

[A digit can also be denoted by `\d`.]

Problem

I have a pattern where there are double-quotes between numbers in a CSV file. I can search for the pattern by [0-9]\"[0-9], but how do I retain value while removing the double quote. CSV format is like this: ``` "1234"5678","Text1","Text2" "987654321","Text3","text4" "7812891"3","Text5","Text6" ``` As you may notice there are double quotes between some numbers which I want to remove. I have tried the following way, which is incorrect: ``` :%s/[0-9]\"[0-9]/[0-9][0-9]/g ``` Is it possible to execute a command at every search pattern, maybe go one character forward and delete it. How can "lx" be embedded in search and replace.

Original source