BSD Ports

devel/re2 20240702_1 DragonFly

Fast C++ regex library

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD3CLAUSE
Categories
devel
Package size
251.3 KiB, 1260.5 KiB installed

Description

RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.

RE2 uses automata theory to guarantee that regular expression searches run in time linear in the size of the input. RE2 implements memory limits, so that searches can be constrained to a fixed amount of memory. RE2 is engineered to use a small fixed C++ stack footprint no matter what inputs or regular expressions it must process; thus RE2 is useful in multithreaded environments where thread stacks cannot grow arbitrarily large.

In the other systems

SystemPortVersion
DragonFlydevel/re220240702_1
FreeBSDdevel/re220251105
OpenBSDtextproc/re220251105p1
NetBSDdevel/re220251105nb3
MidnightBSDdevel/re220240702
HardenedBSDdevel/re220251105
GhostBSDdevel/re220251105
OPNsensedevel/re220251105

Install

Binary package:

pkg install re2

From DPorts:

cd /usr/dports/devel/re2 && make install clean

Dependencies

Run dependencies 1