pcre
1.1、pcre简介
short for:Perl Compatible Regular Expressions
是什么 ?:library and utilities that implement regular expression pattern matching using the same syntax and semantics as Perl 5.
开发语言:C
官方主页:http://www.pcre.org
1.2、通过包管理器安装pcre
操作系统包管理器安装命令
Windowsscoopscoop install pcregrep
macOSHomeBrewbrew install pcre
GNU/LinuxHomeBrewbrew install pcre
aptsudo apt-get install -y pcre-utils libpcre-dev
CentOSyumsudo yum install -y pcre-tools pcre-devel
dnfsudo dnf install -y pcre-tools pcre-devel
openSUSEzyppersudo zypper install -y pcre-tools pcre-devel
Alpine Linuxapksudo apk add pcre-tools pcre-dev

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm pcre
Gentoo LinuxPortagesudo emerge libpcre
1.3、通过编译源码安装pcre
1.4、pcre中包含的命令
1.5、pcre中包含的头文件
1.6、pcre中包含的库文件
  • libpcreposix.{a | so | dylib}
  • libpcre32.{a | so | dylib}
  • libpcre16.{a | so | dylib}
  • libpcre.{a | so | dylib}