Quantcast
Channel: Forcing Bash to use Perl RegEx Engine - Unix & Linux Stack Exchange
Browsing all 3 articles
Browse latest View live

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 Article


Answer 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 Article


Forcing 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
Browsing all 3 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>