compile-time-regular-expressions
compile-time-regular-expressions copied to clipboard
Compile Time Regular Expression in C++
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...
Closes #269
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...
I know this is an old thread, but chiming in here - because _MSC_VER is defined when clang is building in msvc compatibility mode (via clang-cl), the addition of the...
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:  Using C++ 17.