#include <iostream>
#include <string>
#include <vector>
#include <regex>
using namespace std;

int main() {
	regex re("<\\s*A\\s+(?:[^>]*?\\s+)?href\\s*=\\s*\"([^\"]*)\"", std::regex_constants::icase);
	string subject("<head><title>Search engines</title></head><body><a href=\"https://y...content-available-to-author-only...x.ru\">Yandex</a><a href=\"https://google.com\"></a></body>");
	vector<string> result(sregex_token_iterator(subject.begin(), subject.end(), re, 1),
                               sregex_token_iterator());
	
    for( auto & s : result ) cout << s << endl;
    return 0;
}