0

My regex is failing to handle below a) but passes b) I have to handle the situation where comma is not followed by ".

The regex I used is:-

,(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$) 

a) clean lname,,GandtTe,,:,.{}[]()~^*"@#$%&!\/'><;Gandt,Terry,L,,F,S,,7901 W Denver Ave,

b) 02, ,3006,101791106,,Lantz,Jon,Dow,,F,Unknown,,\"3301, Kntario Ave\",,,Kelando,5546215,FL,32806,,United States,,,,,,test@gmail.com,2306988547,19931325,20150825,Hourly 
Snehal Patel
  • 1,282
  • 2
  • 11
  • 25

0 Answers0