fork download
  1. object Main extends App {
  2. // your code goes here
  3. val pat = """[0-9]+\.([0-9]+|0e-?[0-9]+)|[0-9]+e-?[0-9]+""".r
  4. println(pat.findFirstIn("3e343 0.123").toList)
  5. }
Success #stdin #stdout 0.39s 382080KB
stdin
Standard input is empty
stdout
List(3e343)