tests= [ "57.6E4", # dimensionless "2014-05-29T00:00", #ISO8601 times, cannot contain spaces. "2013-044", # shorter ISO8601 string "5.e4 Hz", # registered known units "5.6 foos", # units from the wild "5.7 bytes/sec", # mix of MKS and units from the wild. "5.7Hz", # no space "5.7T", # no space, contains T. "+5.7E+2Hz", # more challenging double. "5.7eggs", # the e could be confused with exponent "57 deg F", # units can contain spaces. "$57" # unit before number ] from org.das2.datum import DatumUtil ss= DatumUtil.datumStringSplit( '5.7eggs' ) print '
',ss[0],' | ', ss[1], ' | ', '