Regular expression library

The Boost Regex library provides regular expression support for C++, this library is the ancestor to std::regex and still goes beyond and offers some advantages to, the standard version.

The full documentation is available on

Support, bugs and feature requests

Bugs and feature requests can be reported through the Gitub issue tracker (see open issues and closed issues).

You can submit your changes through a pull request.

There is no mailing-list specific to Boost Regex, although you can use the general-purpose Boost mailing-list using the tag [regex].


Clone the whole boost project, which includes the individual Boost projects as submodules (see boost+git doc):

git clone
cd boost
git submodule update --init

The Boost Regex Library is located in libs/regex/.

Running tests

First, make sure you are in libs/regex/test. You can either run all the tests listed in Jamfile.v2 or run a single test:

../../../b2                        <- run all tests
../../../b2 regex_regress          <- single test
license BSL-1.0
project boost
topics C++Boost
1 Version
version 1.77.0+1
depends 14; libicuuc, libicui18n, libboost-assert, libboost-concept-check, libboost-config, libboost-container-hash, libboost-core, libboost-integer, libboost-mpl, libboost-predef, libboost-smart-ptr, libboost-static-assert, libboost-throw-exception, libboost-type-traits