How to replace all incoming between two quotation marks in a text file. The first quote always precedes the tab, or it is the first character in the string (csv file). I tried the following regex
/(\t"|^")([^"]*)(\n)([^"]*")/gm
but this regular expression matches only one entry between two quotation marks, 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 replaces spaces between brackets ), which is very similar, but the regex suggested that it is not used in my situation.
source
share