
Compile Time Regular Expressions
Compile Time Regular Expression in C++.
Overview & architecture
- Categories
- Core Libraries / Algorithms & RangesprimaryCore Libraries / Text
- C++ standard
- –
- Build systems
- –
- License
- Apache-2.0
- Languages
- C++
- Last release
- v3.11.0 · May 8, 2026
- Also known as
- CTRE
Links
Repository activity
Recent notable activity
- ReleaseCompile Time Regular Expressions v3.11.0
What's Changed Update Experimental CMAKE_IMPORT_STD Flags by @MathewBensonCode in Improved bugs of >127 characters when using char is signed. Full Changelog:
Hana Dusíkováv3.11.0 - ReleaseCompile Time Regular Expressions v3.10.0
Changes fix for warning in wrapper.hpp #307 added operator-> in search_all iterator #311 allow () in grammar #319 range-for in unicode library is using reference instead of copy #316 improve cmake for modules from PR #322 and PR #323 fixes problems with modules in MSVC #324 make work a, b, and regimes #326 don't…
Hana Dusíkováv3.10.0 - ReleaseCompile Time Regular Expressions v3.9.0
you can now use CTRE as C++ module! with -DCTRE_MODULE=ON (experimental) 🎉 ctre::range is deprecated and replaced with ctre::search_all c++ void print_all_string(std::string_view subject) { for (auto word: ctre::search_all (subject)) { std::cout parse_number(std::string_view) { return ctre::match…
Hana Dusíkováv3.9.0 - ReleaseCompile Time Regular Expressions v3.8.1
fix of error with checked iterators in MSVC when ctre::split range return last item empty update cmake project version to mirror release version
Hana Dusíkováv3.8.1 - ReleaseCompile Time Regular Expressions v3.8
ability to build ctll::fixed_string from pointer and std::array (ctll::fixed_string (ctll::construct_from_pointer, ptr)) improved compatibility issues of operator== and operator!= utf8_iterator and utf8_sentinel
Hana Dusíkováv3.8 - ReleaseCompile Time Regular Expressions v3.7.2: explicit operator bool
conditional [[msvc::flatten]] and explicit operator bool on capture groups, which fixes #275
Hana Dusíkováv3.7.2 - ReleaseCompile Time Regular Expressions v3.7.1: miscellaneous fixes + switching modes
switching modes inside pattern (pattern: (?i)AB(?c)AB matches string: "abAB") better detection of char8_t support fix build failure in libc++ debug mode remove some shadowing warnings
Hana Dusíkováv3.7.1 - ReleaseCompile Time Regular Expressions v3.7: case-insensitive matching and look-behind
Support for: lookbehind positive ( (subject_or_range) (example: ctre::match (input) Notes: don't use mixes case range when doing case_insensitive: [a-z] will match a-zA-Z [a-Z] won't match anything (as ascii(a) > ascii(Z)) [A-z] will match more than you expect A-Z[\]^_a-z + backtick (as I don't know how to type in…
Hana Dusíkováv3.7 - ReleaseCompile Time Regular Expressions v3.6
[[:punct:]] behaves as ispunct in C fix for several MSVC warnings cmake library is using C++20 by default (you can change it back with -DCTRE_CXX_STANDARD=17) CI/CD for all supported compilers (+ some fixes along the way)
Hana Dusíkováv3.6 - ReleaseCompile Time Regular Expressions v3.5: Unicode 14 support
updated to Unicode 14 fix in UTF-16 support in patterns better support of C++17 modes on newer compilers
Hana Dusíkováv3.5
Maintainers & organizations
Maintainers
Hana DusíkováPersonsource: github.com ↗✓ verified
Top contributors
157 commitssource: github.com ↗✓ verified
12 commitssource: github.com ↗✓ verified
10 commitssource: github.com ↗✓ verified
10 commitssource: github.com ↗✓ verified
5 commitssource: github.com ↗✓ verified
5 commitssource: github.com ↗✓ verified
4 commitssource: github.com ↗✓ verified
4 commitssource: github.com ↗✓ verified
3 commitssource: github.com ↗✓ verified
3 commitssource: github.com ↗✓ verified
3 commitssource: github.com ↗✓ verified
3 commitssource: github.com ↗✓ verified
2 commitssource: github.com ↗✓ verified
2 commitssource: github.com ↗✓ verified
2 commitssource: github.com ↗✓ verified
Releases & changelog
- Compile Time Regular Expressions v3.11.0majorMay 8, 2026
What's Changed Update Experimental CMAKE_IMPORT_STD Flags by @MathewBensonCode in Improved bugs of >127 characters when using char is signed. Full Changelog:
- Compile Time Regular Expressions v3.10.0majorMay 20, 2025
Changes fix for warning in wrapper.hpp #307 added operator-> in search_all iterator #311 allow () in grammar #319 range-for in unicode library is using reference instead of copy #316 improve cmake for modules from PR #322 and PR #323 fixes problems with modules in MSVC #324 make work a, b, and regimes #326 don't…
- Compile Time Regular Expressions v3.9.0majorMay 16, 2024
you can now use CTRE as C++ module! with -DCTRE_MODULE=ON (experimental) 🎉 ctre::range is deprecated and replaced with ctre::search_all c++ void print_all_string(std::string_view subject) { for (auto word: ctre::search_all (subject)) { std::cout parse_number(std::string_view) { return ctre::match…
- Compile Time Regular Expressions v3.8.1Oct 14, 2023
fix of error with checked iterators in MSVC when ctre::split range return last item empty update cmake project version to mirror release version
- Compile Time Regular Expressions v3.8majorJul 28, 2023
ability to build ctll::fixed_string from pointer and std::array (ctll::fixed_string (ctll::construct_from_pointer, ptr)) improved compatibility issues of operator== and operator!= utf8_iterator and utf8_sentinel
- Compile Time Regular Expressions v3.7.2: explicit operator boolJan 30, 2023
conditional [[msvc::flatten]] and explicit operator bool on capture groups, which fixes #275
- Compile Time Regular Expressions v3.7.1: miscellaneous fixes + switching modesOct 1, 2022
switching modes inside pattern (pattern: (?i)AB(?c)AB matches string: "abAB") better detection of char8_t support fix build failure in libc++ debug mode remove some shadowing warnings
- Compile Time Regular Expressions v3.7: case-insensitive matching and look-behindmajorJun 1, 2022
Support for: lookbehind positive ( (subject_or_range) (example: ctre::match (input) Notes: don't use mixes case range when doing case_insensitive: [a-z] will match a-zA-Z [a-Z] won't match anything (as ascii(a) > ascii(Z)) [A-z] will match more than you expect A-Z[\]^_a-z + backtick (as I don't know how to type in…
- Compile Time Regular Expressions v3.6majorMar 20, 2022
[[:punct:]] behaves as ispunct in C fix for several MSVC warnings cmake library is using C++20 by default (you can change it back with -DCTRE_CXX_STANDARD=17) CI/CD for all supported compilers (+ some fixes along the way)
- Compile Time Regular Expressions v3.5: Unicode 14 supportmajorJan 23, 2022
updated to Unicode 14 fix in UTF-16 support in patterns better support of C++17 modes on newer compilers
Contribution opportunities
No published opportunities
Why this score
- Activity0.000 merged PRs in 30 days (full marks at 20); 0 commits in 30 days (full marks at 60) [health score: no data for maintainer responsiveness, backlog pressure; weights renormalized]health
- Onboarding0.25has CI; missing contributing guide, mainstream build (CMake/Bazel/Meson), docs sitecontrib
- Release cadence0.55last release 198 days ago (full marks within 90, zero after 730); 1 releases in 365 days (full marks at 4) [health score: no data for maintainer responsiveness, backlog pressure; weights renormalized]health
- Contributor breadth0.36top contributor has 70% of commits; stars count for at most 5% of this signal [health score: no data for maintainer responsiveness, backlog pressure; weights renormalized]health
Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.