I'm working on a simple NLP project which given a string, the various parameters would be determined.
Given the following input:
07122012 12102012
Code:
string REGEX_DATE = "((\\d{2})/(\\d{2})/(\\d{4}))";
regex expressionFormat(REGEX_DATE);
sregex_token_iterator i(input.begin(), input.end(), expressionFormat, 1);
sregex_token_iterator j;
while(i != j)
{
result = *i++;
}
What would be the best way to store and compare the results? (Determine which date is earlier)