public static void main(String[] args) {
var pattern = Pattern.compile("TOKKEN=(?<tokken>\\w+); NAME=(?<name>\\w+);");
var string = "TOKKEN=YVJ678RDH; NAME=YOUT;";
var matcher = pattern.matcher(string);
if (matcher.find()) {
var tokken = matcher.group("tokken");
var name = matcher.group("name");
System.out.println(tokken);
System.out.println(name);
}
}