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

On my embedded environment (https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm), there is no support for `wchar_t`. This PR adds preprocessor guards excluding code that refers to wide characters and strings. That guard is automatically applied...

here is the test code : ``` int test2() { using namespace std::literals; //std::string original = "๐”พ๐• ๐• ๐•• ๐•ž๐• ๐•ฃ๐•Ÿ๐•š๐•Ÿ๐•˜ ๐”พ๐• ๐• ๐•• ๐•ž๐• ๐•ฃ๐•Ÿ๐•š๐•Ÿ๐•˜"; std::string original = "ๆˆฆๅ ดใฎใƒดใ‚กใƒซใ‚ญใƒฅใƒชใ‚ข3"; auto bdata = original.data(); static constexpr...

as you describe at : https://github.com/hanickadot/compile-time-regular-expressions#unicode std::u8string is supported after c++20 How can I do the same thing using C++17? I used std::string instead of std::u8string , I got wrong...

I was trying to make a regex that does not match anything using the `[^\w\W]` syntax. It worked by itself, but failed to compile once I used a greedy quantifier...

I want to preface this with the fact that I am quite inexperienced with regular expressions, so I may be wrong about some things. When I created [issue #281](https://github.com/hanickadot/compile-time-regular-expressions/issues/281), the...

I walked myself through this on issue #282 and, in hindsight, had it spelled out for me on issue #281. At least with this, CTRE will match the behavior of...

CTRE: latest main branch current moment. for validate email I use: `(?:(?:[^()\[\].,;:\s@"]+(?:\.[^()\[\].,;:\s@"]+)*)|".+")@(?:(?:[^()\[\].,;:\s@"]+\.)+[^()\[\].,;:\s@"]{2,})` regex. Let attached file (extension changed to LOG, because can't attach .cpp file): [example.LOG](https://github.com/hanickadot/compile-time-regular-expressions/files/10833874/example.LOG) Build: `$ clang++ -o...

Trying to run the first example. Getting a "invalid nontype template argument of type "const char (&)[15]"" error: ![devenv_xh8mQD2OI8](https://user-images.githubusercontent.com/16989713/217891694-91e3b128-41fa-4d14-a545-a83ab4206b7f.png) Using C++ 17.