Regex help please

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
Can anyone help to write one regex to read all the fields in the following
comma delimited lines / file

some_alphanumeric,some_alphanumeric,"something,
something",some_hyhenated_numbers
some_alphanumeric,some_alphanumeric,something
something,some_hyhenated_numbers

Please?!

TIA

--
 
I can get most of the field with this
"[^"\r\n]*",|[A-Za-z0-9 ]*,|[0-9]*\-[0-9]*

EXCEPT when the last field (numbers) are not hyphenated, how do I an
optional "-" please!?

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Regular expression problem, help please! 3
Newbie question about Regex 8
Regex : handling single quotes while parsing csv file 4
Regex in C# 4
REGEX 3
regex help 5
C# Regex Question 4
regex question 7

Back
Top