compile-time-regular-expressions icon indicating copy to clipboard operation
compile-time-regular-expressions copied to clipboard

"[^]" construct standing for any character, including new lines, not supported

Open vadz opened this issue 4 years ago • 0 comments
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.

vadz avatar Jun 03 '21 15:06 vadz