[rubis] (change:minor) Use regex in place of sequential string search also for extracting page number.
[rubis] (change:minor) Compiled regex for page extraction. Also, wrongly returned an int in place of a string.