I needed to find all the files that contained a specific string pattern. The first solution that comes to mind is using find piped with xargs grep:
Here is a more useful example:
pcregrep -Mi "(.*\n){0,5}" afile.html
It searches the title tag in a html file even if it spans up to 5 lines.
Here is an example of unlimited lines:
pcregrep -Mi "(?s).*" example.html