compile-time-regular-expressions
compile-time-regular-expressions copied to clipboard
"[^]" construct standing for any character, including new lines, not supported
trafficstars
This can be replaced by (.|\n), but normally this should work too, quoting from https://en.cppreference.com/w/cpp/regex/ecmascript
CharacterClass ::
[ [ lookahead ∉ {^}] ClassRanges ]
[ ^ ClassRanges ]
ClassRanges ::
[empty]
NonemptyClassRanges
and it does work in practice with both boost::regex and std::regex, but results in a compilation errors (not reproduced here as there are more than 1000 lines of them) with CTRE.