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

int main() {
	string s("0.123,0.432,0.123,ABC");
	regex r("[^,]+$");
	smatch matches;
	if (regex_search(s, matches, r)) {
    	cout<<matches.str();
	}
    return 0;
}