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

example : some IPV4 pcre using a DEFINE. `(?(DEFINE)(?2[0-4]\d|25[0-5]|1\d\d|[1-9]?\d))\b(?&byte)(\.(?&byte)){3}\b` Can not find anywhere in the documentation that this is not supported but it does not compile. Supporting this would certainly...

Even if comments can be stripped-off from a regexp, it would help to pass verbatim some regexp with comments inside directly. To make it crystal clear : need for support...

Hello, given e.g. ```c++ auto res = ctre::search("foo.123"); ``` with std::regex one can get the "foo" part with the prefix() method of std::match_results. Is there a correct way to have...

https://github.com/hanickadot/compile-time-regular-expressions/blob/324cd302f354643e842a99155653b55d55419b5e/include/unicode-db/unicode-db.hpp#L7339

Chapter "Using captures" It should be ``` auto result = ctre::match(s); return date{result.get(), result.get, result.get}; // or in C++ emulation, but the object must have a linkage static constexpr ctll::fixed_string...

In source files, the complete text of a license can be replaced by its corresponding SPDX tag and identifier. This PR reduces the size of the ctre*.hpp files by more...

A regex with a repeated group and a lazy space character doesn't work like I expect. boost and the online regex demo tools behave as expected. Here's as simple an...

Is it possible to add custom UserTokens for regular expressions? For example: ```\F``` For float numbers: ``` +.123 -1.5e-10 3.14 ``` Or you can give an example, or where to...

The macro here (https://github.com/hanickadot/compile-time-regular-expressions/blob/main/include/ctre/return_type.hpp#L552) has a `#ifndef __EDG__`, but Microsoft intellisense (Visual Studio or VSCode extensions) uses EDG Frontend, so false squiggles will appear though compilation passes. When I remove...

I am trying to recreate your desatomat tool in python so I can make a LL(1) ANTLR & EBNF grammer parser. The following types are missing from `pcre.hpp` but were...

question