fork download
  1. object Main extends App {
  2. // your code goes here
  3. val x= "01/02/06"
  4. println(x.matches("[0-9]+[/][0-9]+[/][0-9]+"))
  5. }
Success #stdin #stdout 0.37s 382080KB
stdin
Standard input is empty
stdout
true