Hi
I need to write one regex to read all the fields from the following lines /
file format
line 1 - some_alphanumer ic,some_alphanu meric,"somethin g,
something",numb ers_hyphenatedO Rnot
line 2 - some_alphanumer ic,some_alphanu meric,something
something,numbe rs_hyphenatedOR not
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_alphanumer ic,some_alphanu meric,"somethin g,
something",numb ers_hyphenatedO Rnot
line 2 - some_alphanumer ic,some_alphanu meric,something
something,numbe rs_hyphenatedOR not
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
--
Comment