str = "Displaying Results Items 1 - 50 of 120, Page 1 of 3"print str.match(/Page +\d+ +of +(\d+)/)[1]
Standard input is empty
3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!