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
Post a Comment