fork download
  1. x=as.factor(c(".&.", "0.0119885482338&.&.", ".&2.25880593895", ".&.&.&.&.&.&.&.", ".&0.295142083575&.", "0.708323350364",".&.&0.193766679861",".&.&.&.&7.65239874523E-4&.&."))
  2. sub("^.*?(?:([-+]?\\d*\\.?\\d+(?:[eE][-+]?\\d+)?).*|$)","\\1",x)
  3.  
Success #stdin #stdout 0.22s 39524KB
stdin
Standard input is empty
stdout
[1] ""                 "0.0119885482338"  "2.25880593895"    ""                
[5] "0.295142083575"   "0.708323350364"   "0.193766679861"   "7.65239874523E-4"