G
Guest
Hi
I need to write one regex to read all the fields from the following lines /
file format
line 1 - some_alphanumeric,some_alphanumeric,"something,
something",numbers_hyphenatedORnot
line 2 - some_alphanumeric,some_alphanumeric,something
something,numbers_hyphenatedORnot
At first I thought this one will do
"[^"\r\n]*",|[A-Za-z0-9 ]*,|[0-9]*\-[0-9]*
but I am getting the delimiters such as the trailing comma and the
double-quote along with the fields !!
Can this be modified to get the fields only, or at least to get rid of the
trailing comma?
TIA
--
I need to write one regex to read all the fields from the following lines /
file format
line 1 - some_alphanumeric,some_alphanumeric,"something,
something",numbers_hyphenatedORnot
line 2 - some_alphanumeric,some_alphanumeric,something
something,numbers_hyphenatedORnot
At first I thought this one will do
"[^"\r\n]*",|[A-Za-z0-9 ]*,|[0-9]*\-[0-9]*
but I am getting the delimiters such as the trailing comma and the
double-quote along with the fields !!
Can this be modified to get the fields only, or at least to get rid of the
trailing comma?
TIA
--