There is a line:
string s1 = "20.02.1912 and 02.08.1756." And there is a pattern:
regex date_pat1{ R"((\d{2})\.(\d{2})\.(\d{4}))" }; It is necessary to have access to the first date (substring), and the second date, and the n-th date, if there is one in the line. How can this be done if regex_search () finds only the first substring matching this pattern?