c++ - Validation for error -
while developing personal library stumbled upon think error inside libstdc++6. because i'm quite sure library has been reviewed lot of higher skilled people came here validate finding , assistance on further steps. consider following code: #include <regex> #include <iostream> int main() { std::string uri = "http://example.com/test.html"; std::regex reg(...); std::smatch match; std::regex_match(uri, match, reg); for(auto& e: match) { std::cout<<e.str() <<std::endl; } } i have written regex parse url into protocol user/pass (optional) host port (optional) path (optional) query (optional) location (optional) i used following regex (in c++): std::regex reg("^(.+):\\/\\/(.+@)?([a-za-z\\.\\-0-9]+)(:\\d{1,5})?([^?\\n\\#]*)(\\?[^#\\n]*)?(\\#.*)?$"); this worked quite fine in online tester , msvc++ 2015 update 3 fails on build host host part ma...