object Main extends App { // your code goes here val x= "01/02/06" println(x.matches("[0-9]+[/][0-9]+[/][0-9]+"))}
Standard input is empty
true
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!