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

string PrintMatch(std::string str, std::regex reg) {
    smatch matches;
    while (regex_search(str,matches,reg))
    {
        cout << matches.str(1) << endl;
        break;
    }
    return matches.str(1);
}

int main() {
    string str = "C:/Riot Games/League of Legends/LeagueClientUx.exe" "--riotclient-auth-token=yvjM3_sRqdaFoETdKSt1bQ" "--riotclient-app-port=53201" "--no-rads" "--disable-self-update" "--region=EUW" "--locale=en_GB" "--remoting-auth-token=13bHJUl7M_u_CtoR7v8XeA" "--respawn-command=LeagueClient.exe" "--respawn-display-name=League of Legends" "--app-port=53230" "--install-directory=C:\Riot Games\League of Legends" "--app-name=LeagueClient" "--ux-name=LeagueClientUx" "--ux-helper-name=LeagueClientUxHelper" "--log-dir=LeagueClient Logs" "--crash-reporting=crashpad" "--crash-environment=EUW1" "--crash-pipe=\\.\pipe\crashpad_12076_CFZRMYHTBJGPBIUH" "--app-log-file-path=C:/Riot Games/League of Legends/Logs/LeagueClient Logs/2020-07-13T13-33-41_12076_LeagueClient.log" "--app-pid=12076" "--output-base-dir=C:\Riot Games\League of Legends" "--no-proxy-server";
    regex reg("--riotclient-app-port=(\\d+)");
    string port = PrintMatch(str, reg);
    regex reg1("remoting-auth-token=([\\w-]+)");
    string output = PrintMatch(str, reg1);
}