Tabliz
Tabliz

Reputation: 13

How can I replace the quotes and the words inside them with brackets with notepad++?

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

Answers (1)

Tim Biegeleisen
Tim Biegeleisen

Reputation: 522817

Here is one option, assuming your double quotes are always balanced:

Find: "([^"]+)"
Replace: [$1]

Demo

We can match and capture all content inside double quotes, then replace it with that content inside square brackets.

Upvotes: 2

Related Questions