14 Oct
2016
14 Oct
'16
2:25 p.m.
Let's say we have a regex "start:(?: ([0-9]{1,2}))? ([0-9].*)".
It will match
std::string string1 = "start: 01 0ab";
and
std::string string2 = "start: 0ab";
We can also get the 2 matched string respectively.
I try to use boost::spirit::qi parser to parse string2 but it couldn't
match.
qi::rule