pcre2

Perl compatible regular expressions library with modern API

brewmacoslinux
Try with needOr install directly
Source

About

Perl compatible regular expressions library with a new API

Commands

pcre2-configpcre2greppcre2test

Examples

Search for lines matching a regex pattern in a file$ pcre2grep 'pattern' filename.txt
Test a regular expression pattern interactively$ pcre2test
Get PCRE2 configuration and compilation flags$ pcre2-config --version