0

This is not duplicate! I'm asking for solution with regex. I can't use external libraries

I have csv file with [,] as separator and ["] as escape character. I need regex to get all the "cells" from the row.

This row should be converted to:

This, Is, "Super Test", That, "Should, maybe work", Oh

1. This
2. Is
3. Super Test
4. That
5. Should, maybe work
6. Oh

I want to to be universal so I can't hardcode number of "cells".

Can you help me create regex for that?

What I tried? I tried creating regex but failed.

P.S. If you know other method that is nice or maybe faster I'd be happy to hear about it.

Hooch
  • 28,817
  • 29
  • 102
  • 161

0 Answers0