Adding option to use Perl Compatible Regular Expressions (PCRE) instead of egrep pattern.