You can use boost::sub_match::matched
bool member:
if(match[index_of_time_group].matched) process_it(match);
It is also possible to use named groups in regexp like: (?<name_of_group>.*)
, and with this above line could be changed to:
if(match["name_of_group"].matched) process_it(match);