compile-time-regular-expressions
compile-time-regular-expressions copied to clipboard
Case-insensitive search support?
Thanks for the impressive library, but trying to migrate my existing code using Boost.Regex to it, I ran into the following problem: there currently doesn't seem to be any equivalent to std::regex::icase
and PCRE-like (?i)
is not supported neither (as indicated by the mention of lack of support for PCRE options in the README, of course).
Am I missing something, i.e. is there some other way to make the match case-insensitive, other than the obvious, but ugly, one of using [fF][oO][oO]
, or is this just not supported at all?
Currently it's not supported at all as case sensitivity especially in world of unicode is quite complicated subject.
I'll happily take an ASCII only solution. Anything is better than nothing.
What about using std::views::transform(std::tolower) | ctre::match<"regex">
or something similar?