I am looking for a function that can tell me to which data type a string might be converted. Examples:
"28.98" results in float (. as separator)
"44.332,95" results in float (, as separator)
"29/04/14" results in date (should work internationally -> different date formats)
"34.524" results in int (. as delimited)
"all the rest" results in string
Ideally also (these are subclasses of string):
"[email protected]" results in e-mail
"+49/2234/234567" results in phone
Is there a (open source) libary can can do such thing?
Thanks!