Reputation: 13
I'm working on a .csv file and I want to replace
"something1","something2","something3"
to
[something1],[something2],[something3]
How can I do this in 1 go? I couldn't find the right expression.
Much appreciated. Klive
Upvotes: 1
Views: 293
Reputation: 522817
Here is one option, assuming your double quotes are always balanced:
Find: "([^"]+)"
Replace: [$1]
We can match and capture all content inside double quotes, then replace it with that content inside square brackets.
Upvotes: 2