{"id":61882,"library":"ctre","title":"CTRE","description":"A Compile time PCRE (almost) compatible regular expression matcher","status":"active","version":"3.10.0","language":"cpp","source_language":null,"source_url":null,"tags":["regex","compile-time","header-only","pcre"],"install":[{"cmd":"vcpkg install ctre","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(ctre CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE ctre::ctre)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"ctre.hpp","correct":"#include <ctre.hpp>"}],"quickstart":{"code":"#include \"ctre.hpp\"\n// Match a regex at compile time\nconstexpr auto match = ctre::match<\"\\\\d+\">(\"123\");","lang":"cpp","description":"Match a regular expression at compile time"},"warnings":[{"fix":"Check documentation for supported features before using complex patterns","message":"Not fully PCRE compatible; some features missing","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'almost':6 'compat':7 'compil':3,13 'compile-tim':12 'ctre':1 'express':9 'header':16 'header-on':15 'matcher':10 'pcre':5,18 'regex':11 'regular':8 'time':4,14","created_at":"2026-06-17T05:08:59.541256+00:00","updated_at":"2026-06-17T05:08:59.541256+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}