in reply to Re^2: Splitting a string on commas except when inside quotesin thread Splitting a string on commas except when inside quotes
The regex looks for a trailing comma for every field. "$line," just adds one for the last field.