compile-time-regular-expressions icon indicating copy to clipboard operation
compile-time-regular-expressions copied to clipboard

Compile Time Regular Expression in C++

Results 112 compile-time-regular-expressions issues
Sort by recently updated
recently updated
newest added
trafficstars

Hi, I'm trying to capture 5 fields/groups inside a XML file. I called fields: `a`, `b`, `c`, `d` and `e` A loaded the XML file inside a `std::string` variable called...

This commit does a couple changes: * Actually adheres to the declared CMake 3.8 requirement * HOMEPAGE_URL in project() was added in 3.12 * install(TARGETS) requires the DESTINATION argument *...

Hana, FYI, and unfortunately I don't have time to investigate properly this week, will just revert. I think it's possibly due to an ambiguity about extensions to C++ 20 constexpr...

I added compiler explorer links as well as some better examples.

Is there any relevant testHow about ctre speed? Is there any relevant test? Please refer to the https://github.com/mariomka/regex-benchmark/issues/37

I thought I removed all cases 🤷🏻‍♀️ > ctre::range matches an empty string will cause infinite loop, e.g., for (auto&& m : ctre::range("aab")); (description from another issue)

1. Possessive qualifier `"?+"` is not supported. ~2. `ctre::range` matches an empty string will cause infinite loop, e.g., `for (auto&& m : ctre::range("aab"));`~ (moved to issue #222)

Hi, I just followed thevcpkg migration of ctre from 2.10 to 3.4.1 and it seems there is a confusion in the char type I use (i.e. wchar_t) as CharT=char even...

Looking at https://github.com/hanickadot/compile-time-regular-expressions/blob/152a33c8a2077d1f3e1ed0a76672f9713cd09e97/include/ctre/utf8.hpp#L56 ```c constexpr utf8_iterator & operator++() noexcept { // the contant is mapping from first 5 bits of first code unit to length of UTF8 code point -1...

MSVC 14.16.27023 cannot find the unqualified `find_captures`. changing it to `::ctre::find_captures` seems to fix this. [build log excerpt](https://gist.github.com/Siapran/bbaedeb3357e21730f6970c7670d7215) code excerpt: ```cpp constexpr auto JOURNAL_PAGE_PATTERN = ctll::fixed_string{"^journal_(\\d+)$"}; using std::filesystem::path; std::optional matchJournalPage(path...