p ('a'*1000 + 'b'*1000).match(/a.*b.*c/)
Standard input is empty
nil
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!