The regex looks for a trailing comma for every field. "$line," just adds one for the last field.
In reply to Re^3: Splitting a string on commas except when inside quotes
by tybalt89
in thread Splitting a string on commas except when inside quotes
by anadem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |