I wondered how to escape the circumflex char ^
My input is SETD^i.11.mix^0.1015118791 and i want to capture 11 and 0.1015118791
when i replace the circumflex with \094 the callback seems to run endlessly
@nickgammon Do you have an idea how to write the regex?
char buf [100] = "SETD^i.11.mix^0.1015118791";
MatchState ms (buf);
count = ms.GlobalMatch ("^i.(%d+).mix^([%d.]+)", match_callback); // no match
count = ms.GlobalMatch ("^i.(%d+).mix", match_callback); // no match
count = ms.GlobalMatch ("\^i.(%d+).mix", match_callback); // no match
count = ms.GlobalMatch ("\\^i.(%d+).mix", match_callback); // no match
count = ms.GlobalMatch ("\094i.(%d+).mix", match_callback); // endless loop in callback
I wondered how to escape the circumflex char
^My input is
SETD^i.11.mix^0.1015118791and i want to capture11and0.1015118791when i replace the circumflex with
\094the callback seems to run endlessly@nickgammon Do you have an idea how to write the regex?