#include <regex>
#include <string>
#include <iostream>


std::string get_date(std::string str) {
		static std::vector<std::regex> patterns = {
		    std::regex{R"(^[a-zA-Z]{3},\s*(.*?)\s*\d{2}(?::\d{2}){2})"},
		};
		
		for (auto& regex : patterns) {
		    std::smatch m;
		    if (std::regex_search(str, m, regex)) {
		        return m[1]; 
		    }
		}
		return str;
}
		
int main() {
	std::cout << get_date("Fri, 01 Apr 2022 07:28:00 GMT") << std::endl;	
    return 0;
}