C++ (Qt) QUrl url1("http://www.yandex.ru/"); QUrl url2("http://www.yandex.ru"); qDebug() << url1.matches(url2, QUrl::FullyEncoded|QUrl::StripTrailingSlash);
"/folder/" == "/folder""/folder////" == "/folder""////" == "/""/" != ""