Perl grep regexp

broken image

# line anchors have to be always escaped to match literally This section lists some of the them, along with examples. There are several subtle differences between PCRE and BRE/ERE for the same feature. The example_files directory has all the files used in the examples. See man pcrepattern or online manual for complete details. Only some of the commonly used features are presented in this chapter. PCRE is handy when you need advanced features like lookarounds, non-greedy quantifiers, possessive quantifiers, unicode character sets, subexpression calls and so on. PCRE is mostly similar, but not exactly the same as regular expressions present in the Perl programming language.

broken image
broken image

The -P option will help you use Perl Compatible Regular Expressions (PCRE) instead of BRE/ERE.

broken image