I have a string filled with data like these that I want to split based on comma :
16588, 16503, 1, 1, N'1, 2, 3 RUE MENESTRELS', 12, 153
In this exemple I want the output to be like these :
{16588|16503|1|1|N'1, 2, 3 RUE MENESTRELS'|12|153}
The fact is that if I do a split based upon a comma, I'll get this result :
{16588|16503|1|1|N'1|2|3 RUE MENESTRELS'|12|153}
I think a regex can solve this, but after searching for a while I haven't found a solution yet... (And I must confess that I'm not very good with regex too)
To summarize, I'd like to split a string based on all comma, except comma between the characters N'
and the characters '
I tried to use this sample but it doesn't work
\,(?!N[^']*')
Sorry for mistakes, English is not my first language and thank you in advance !