
In multiple overloads of regex_match, regex_constants::match_any is enabled by default, which can cause a drastic drop in matching performance (by a factor of tens to hundreds). This appears to be a bug in either the implementation or the way the function is invoked.