//产生崩溃的正则表达式
generic_string multiTxt = _T("(*.txt|*.ini)");
generic_string excelExt = _T("(*.xls|*.xlsx)");
//解决办法
generic_string multiTxt = _T(".*?\\.(txt|ini)");
generic_string excelExt = _T(".*?\\.(xls|xlsx)");
std::regex_constants::syntax_option_type fl = std::regex_constants::icase;
std::wregex re(multiTxt .c_str(),fl);
regex_match(expression, re);
对正则也不是很精通,暂时没想明白为什么会崩溃,先记录下