puts !('It is 2016 now.' =~ /\b\d{4}\b/).nil?puts 'It was in 2015/16.'[/\b\d{4}\b/]
Standard input is empty
true 2015
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!