Can someone provide a regex for validating and parsing a csv of integers and reals -


i new regex , struggling create expression parse csv containing 1 n values. values can integers or real numbers. sample inputs be:

1   1,2,3,4,5     1,2.456, 3.08, 0.5, 7 

this used in c#.

thanks,
jerry

use csv parser instead of regex.

there several options - see this questions , answers , this 1 different options (built bcl , third party libraries).


the bcl provides textfieldparser (within visualbasic namespace, don't let put off it).

a third party library liked many filehelpers.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -