fork(1) download
  1. object Main extends App {
  2. val pattern = """(?<=¦)\d+$""".r
  3. val str = "889¦20457892¦955"
  4. println(pattern findFirstIn str)
  5. println(str.split('¦').last)
  6. }
Success #stdin #stdout 0.41s 2181632KB
stdin
Standard input is empty
stdout
Some(955)
955