fork download
  1. object Main extends App {
  2. val string = "one493two483three"
  3. val pattern = """two(\d+)three""".r
  4. pattern.findAllIn(string).matchData foreach {
  5. m => println(m.group(1))
  6. }
  7. // your code goes here
  8. }
Success #stdin #stdout 0.43s 322240KB
stdin
Standard input is empty
stdout
483