↧
Answer by site80443 for Forcing Bash to use Perl RegEx Engine
One could use pcregrep. It comes with the package pcre in CentOS and pcregrep in Ubuntu. grep -P could have this issue depending on the OS / version: -P, --perl-regexp Interpret PATTERN as a Perl...
View ArticleAnswer by slm for Forcing Bash to use Perl RegEx Engine
Bash doesn't support a method for you to do this at this time. You're left with the following options: Use Perl Use grep [-P|--perl-regexp] Use Bash functionality to code it I think I would go with #2...
View ArticleForcing Bash to use Perl RegEx Engine
As you may already know, a lot of the features modern RegEx engines support (back referencing, lookaround assertions, etc.) are not supported by Bash RegEx engine. Following is a simple Bash script I...
View Article