pcregrep
grep utility that uses perl 5 compatible regexes.
Install
- All systems
-
curl cmd.cat/pcregrep.sh
- Debian
-
apt-get install pcregrep
- Ubuntu
-
apt-get install pcregrep
- Arch Linux
-
pacman -S pcregrep
- Kali Linux
-
apt-get install pcregrep
- CentOS
-
yum install pcregrep
- Fedora
-
dnf install pcregrep
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install pcregrep
- Raspbian
-
apt-get install pcregrep
- Dockerfile
- dockerfile.run/pcregrep
pcregrep
grep utility that uses perl 5 compatible regexes.
Perl-style regexps have many useful features that the standard POSIX ones don't; this is basically the same as grep but with the different regexp syntax. The other reason for the existence of pcregrep is that its source code is an example of programming with libpcre.
pcre-tools
Auxiliary utilities for pcre
pcre
PCRE, Perl-compatible regular expression, library has its own
native API, but a set of wrapper functions that are based on the POSIX API are also supplied in the libpcreposix library. Note that this just provides a POSIX calling interface to PCRE: the regular expressions themselves still follow Perl syntax and semantics. This package provides support for strings in 8-bit and UTF-8 encodings. Detailed change log is provided by pcre-doc package.