How do i replace all enters between two quotes in a text file. The first quote is always preceded by a tab or it is the first character in the row (csv file). I tried the following regex
/(\t"|^")([^"]*)(\n)([^"]*")/gm
but this regex only matches the first enter between two quotes, not all.
For example, the following text:
xx "xx
xx
xx"
xx
"xx"
xx
xx
"xxx xxx
xx"
should become
xx "xx xx xx"
xx
"xx"
xx
xx
"xxx xxx xx"
I read the following post ( javascript regex replace spaces between brackets ) which is very similar, but the regex suggested there is not useable in my situation.