CSV Favorite

Parses a single line of a CSV file. Double quotes are allowed arround fields, but they MUST be the first and last character. Escaped quotes are not possible, so there is no way to have a quote as part of a field's value.

Each match includes a possible comma and quotes. To get the field's actual value, look in group #2.

Sample Matches
Text Result
a,b,c ,"d,e", f
Group #0
a
Group #2
a
Group #0
,b
Group #2
b
Group #0
,c
Group #2
c
Group #0
,"d,e"
Group #1
"
Group #2
d,e
Group #0
, f
Group #2
f
match
Match Groups
1
quote character or blank
2
value
Notes

This could use some work to support embedded quotes in the field values.