re2
1.1、re2简介
是什么 ?:a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python.
开发语言:C++
源码仓库:https://github.com/google/re2
1.2、通过包管理器安装re2
操作系统包管理器安装命令
Allvcpkg
vcpkg install re2
vcpkg install re2:x64-osx
vcpkg install re2:x64-linux
vcpkg install re2:x64-windows
macOSHomeBrewbrew install re2
GNU/LinuxHomeBrewbrew install re2
aptsudo apt-get install -y re2
CentOSyumsudo yum install -y re2
dnfsudo dnf install -y re2
openSUSEzyppersudo zypper install -y re2
Alpine Linuxapksudo apk add re2

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm re2
Gentoo LinuxPortagesudo emerge re2
1.3、通过编译源码安装re2
1.4、re2中包含的头文件
1.5、re2中包含的库文件
  • libre2.{a | so | dylib}