Trying to figure out how to extract groups of 4 digit using regex
The regex I'm using now :
regex_time : "(([01][0-9]|2[0-3])[0-5][0-9])";
Code sample:
regex expressionFormat(REGEX_TIME);
boost::match_results<std::string::const_iterator> what;
if (boost::regex_search(input,what,expressionFormat))
My input would usually be in the form of
"0000 1800 2359"
And I would like to push them into a vector to do some comparsion.
It's for parsing time in string format from a line.