J
Jack Su
when humans look at a string, they will know whether it is a date, a
float, a percentage, or a currency, or simply a string.
for example, when you see, 3,232, you will know it is meant to be a
number.
I wonder if there is easy way in ruby to figure out the data type for a
string. I guess I could let the string go through a list of the regular
expression -- but if I have a lot of strings to process, it is likely to
be costly.
any ideas on a good solution.
float, a percentage, or a currency, or simply a string.
for example, when you see, 3,232, you will know it is meant to be a
number.
I wonder if there is easy way in ruby to figure out the data type for a
string. I guess I could let the string go through a list of the regular
expression -- but if I have a lot of strings to process, it is likely to
be costly.
any ideas on a good solution.