fork(1) download
  1. object Main {
  2. def main(args: Array[String]) {
  3. val string = "one493two483three"
  4. val pattern = """two(\d+)three""".r
  5. pattern.findAllIn(string).matchData foreach {
  6. m => println(m.group(1))
  7. }
  8. }
  9. }
Success #stdin #stdout 0.31s 247424KB
stdin
Standard input is empty
stdout
483