What are the differences between GNU grep’s basic/extended and PCRE (`-P`) regular expressions?

GNU grep's basic (BRE) and extended (ERE) syntax is documented at https://www.gnu.org/software/grep/manual/html_node/Regular-Expressions.html and PCRE is summarized at man pcresyntax, but there is no explicit comparison. What are the differences between GNU grep's basic/extended and PCRE (-P) regular expressions?



Read more here: https://stackoverflow.com/questions/67943781/what-are-the-differences-between-gnu-greps-basic-extended-and-pcre-p-regul

Content Attribution

This content was originally published by qwr at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: