diff --git a/include/boost/regex/v4/regex_compile.hpp b/include/boost/regex/v4/regex_compile.hpp index d6e88029..03e72372 100644 --- a/include/boost/regex/v4/regex_compile.hpp +++ b/include/boost/regex/v4/regex_compile.hpp @@ -721,6 +721,13 @@ re_detail::re_syntax_base* BOOST_REGEX_CALL reg_expression ranges(64, data.allocator()); re_detail::jstack classes(64, data.allocator()); re_detail::jstack equivalents(64, data.allocator()); + if(_flags & regbase::icase) + { + if((cls == traits_type::char_class_upper) || (cls == traits_type::char_class_lower)) + { + cls = traits_type::char_class_alpha; + } + } classes.push(cls); if(dat) {