Add option to find a pattern in the pages

- Pattern matched with option -r "perl regexp pattern"
- Also use \r to rewrite the progress lines

Change-Id: I242071b5a46ce8ba74bcd43c29353bdaaacd0da7
Merge "Add option to find a pattern in the pages"